News for hackers. Stuff that matters.
Re:The Folders Programming Language by omoikane on Friday October 16, 2026 @11:39AM (#50119757)
It says the folders are evaluated in alphabetical order, but actually it's evaluating them in natural sort[1][2]. This makes sense since Windows also displays folders in natural sort order.

[1] https://github.com/rottytooth/Folders/blob/015cf65c15ab681f5...

[2] https://en.wikipedia.org/wiki/Natural_sort_order

Re:The Folders Programming Language by lioeters on Friday October 16, 2026 @10:08PM (#50127188)
Interesting, recently I did a test to see if the file system sorts hexadecimal numbers correctly as prefixes. It does with `less`, but looking at the definition for "natural sort order", perhaps other tools or algorithms work only with base-10.

> Natural sorting algorithms generally operate by splitting strings into "chunks" of text and numbers.