SELECT 0 as ID, '<>' as FROM UNION SELECT DISTINCTROW ., . FROM ;
SELECT 0 as ID, '<>' as FROM UNION SELECT DISTINCTROW ., . FROM ORDER BY .;
http://www.sql.ru/forum/1095707/sortirovka-znacheniy-v-pole-so-spiskom