-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
I am thinking about making a pr for adding some sort options ,e.g. sort by date or maybe sort by name(which most of the times happens but due to this issue it is not guaranteed to happen).After all the change will not be more than ten lines and a bit of documentation maybe something like :
try {
dirData = FS.readdirSync(path);
}
goes to :
try{
dirData=FS.readdirSync(path);
if(options.sorted==="name")
dirData.sort()
else if(options.sorted==="date")
dirData.sort(dataComparer(a,b))
}
Any thoughts?
ash-satelix
Metadata
Metadata
Assignees
Labels
No labels