Mysql
 sql >> Database >  >> RDS >> Mysql

Mysql custom order by e ordine alfabetico per:

SELECT * FROM `$table[$a]` 
ORDER BY 
  FIELD(typeof,'pdf','swf','img','web'), --first order by type
  filename  --then by filename