I would like to order my query first By Field and then for the ones who were not in the list of ‘by FIELD’, sort alphabetically. When I do that, the result first gives all the fields that are not in the field list, en after those fields, the result shows the fields that were ordered by Field (correctly)
This is my query:
SELECT merk FROM user WHERE merk <> '' group by merk
ORDER BY FIELD(merk,'Theo', 'Anne et Valentin') ASC, merk ASC
Result is like this (see the last 2 are the ORDER BY FIELD records)
'Binoche'
'Binoche Mini'
'Blac'
'Carrera'
'Christian Dior'
'D&G'
'Staffan Preutz Design'
'Tim Van Steenbergen'
'Tom Ford'
'Tom Tailor'
'Tommy Hilfiger'
'Vogue'
'Vuillet Vega'
'You\'s Eyeworks'
'Theo'
'Anne et Valentin'
You can also do it this way, so you don’t have to change the sort order of the custom fields: http://www.sqlfiddle.com/#!2/c9122/1
Output: