this post was submitted on 05 Nov 2025
291 points (97.4% liked)

Programmer Humor

27196 readers
1147 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] zr0@lemmy.dbzer0.com 12 points 13 hours ago (1 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

[โ€“] gwl@lemmy.blahaj.zone 1 points 7 hours ago

That depends on language