piktal.sql - swap filetypes.medium/type order