Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case insensitive sorting. #34

Open
octopuss opened this issue Jul 27, 2016 · 0 comments
Open

Case insensitive sorting. #34

octopuss opened this issue Jul 27, 2016 · 0 comments

Comments

@octopuss
Copy link

Hi,

I like your project, and I'm trying to use it in one of my projects. Is there a possibility to add sorting function to the options, so the result will be sorted by it ? I'd like to have the file system sorted case insensitively.

I think that there will be only slight change in your code to allow that - just allow to pass function from options to the list.sort

https://github.com/fshost/node-dir/blob/master/lib/readfilesstream.js#L86

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant