sindresorhus/refined-github

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Sort files and folders by natural order ("100" follows "2") #2977

marcobiedermann posted onGitHub

Add option to sort folders alphabetically

Behavior

Expected order

1-foo
20-bar
110-baz

Actual order

1-foo
110-baz
20-bar

Example

image


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

<img width="117" alt="100 2" src="https://user-images.githubusercontent.com/1402241/78508624-82af3700-7788-11ea-8606-6aa16771b8ea.png">

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

posted by fregante almost 5 years ago

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

posted by sindresorhus almost 5 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests