Ver originalselect dia, case dia when 'Lunes' then 1 when 'Martes' then 2 when 'Miercoles' then 3 when 'Jueves' then 4 when 'Viernes' then 5 when 'Sabado' then 6 when 'Domingo' then 7end as dia_num from eventos order by dia_num;