willdoescode / nat

`ls` alternative with useful info and a splash of color 🎨

Home Page:https://git.io/natls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alphabetical

brenwell opened this issue · comments

Nice little tool!

I was wondering about the possibility of alphabetising files and folders

As you can see the files are not ordered which can make it a little cumbersome to use

Screenshot 2020-11-05 at 11 47 25

Thanks.

commented

this should be an easy enough fix as rusts sort function also sorts vectors and arrays alphabetically.
I'll link the commit once I add the fix.

And it works. )

image

It is working. Thank you.

I am curious if capitals really should be lowered for sorting. I have the suspicion that this behaviour is atypical. But that's just a hunch.

commented

The sorting was not working before I made it lowercase so thats just what was working for me.