this post was submitted on 24 Apr 2025
204 points (97.2% liked)

Comic Strips

17771 readers
1294 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] knightly@pawb.social 1 points 2 months ago (1 children)

Indeed! That kind of scale-sensitive value-based sort requires the data to be invariant in other ways, though. For example, "Episode Three" has 13 charachters, so it would come after "Episode Four" which only has 12 and therefore must be smaller.

Turns out that sorting things is way more complicated than it seems. The wikipedia page on sorting algorithms in computer science lists 37 different ways to sort numbers and it is far from an exhaustive list.