I want to sort by the day of the week and time
The data is coming as follows:
id, dia_hora
1 SEG-10h
2 QUI-11h
3 SEX-09h
query that works when you only get the acronym without time:
SELECT id,dia FROM minhatabela ORDER BY (
FIELD(dia, 'DOM', 'SEG', 'TER', 'QUA', 'QUI', 'SEX', 'SAB')
)