Refined-github: Sort files and folders by natural order ("100" follows "2")

Created on 5 Apr 2020  路  2Comments  路  Source: sindresorhus/refined-github

Add option to sort folders alphabetically

Behavior

Expected order

20-bar
110-baz

Actual order

110-baz
20-bar

Example

image

enhancement under discussion

Most helpful comment

They are already sorted alphabetically, what you're requesting is called natural sorting.

Don't forget to also send a feature request to GitHub as it would be better if they fixed this natively: https://github.com/contact

All 2 comments

I verified that this is not just due to the hyphen; it also fails with number-only filenames:

100 2

If this is implemented it should make sure to _only_ change the order of numbers, or else we might involuntarily also change the ordering of other languages

They are already sorted alphabetically, what you're requesting is called natural sorting.

Don't forget to also send a feature request to GitHub as it would be better if they fixed this natively: https://github.com/contact

Was this page helpful?
0 / 5 - 0 ratings