you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 1 year ago (3 children)

Order by string desc would be Z-A ordering, or 9-0

ORDER BY str(Hour) DESC: 9, 8, 7, 6, 5, 4, 3, 2, 12, 11, 10, 1

ORDER BY int(Hour) DESC: 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1

  • source
  • hideshow 3 child comments