Skip to content

Sort #86

@SpyrosMourelatos

Description

@SpyrosMourelatos

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions