dotcomboom / Pituophis

Gopher client and server library for Python
https://dotcomboom.somnolescent.net/pituophis/
BSD 2-Clause "Simplified" License
45 stars 1 forks source link

Sorting with Gopher globbing #8

Closed dotcomboom closed 5 years ago

dotcomboom commented 5 years ago

Right now, when you have a glob (i.e. a line with just ?*\t, it's in a supposedly random order given by whatever glob thinks is a good idea. Instead, Pituophis should sort this listing alphabetically like how Bucktooth does it, and maybe provide some sort of options for sorting it in a different way.

dotcomboom commented 5 years ago

Natsort (alpha/numerical sorting) implemented in commit https://github.com/dotcomboom/Pituophis/commit/cd2a89426ee1b3812be48fd732fb446fff67127d