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

add by attribute sorting capability #5

Closed
wants to merge 3 commits into from

Conversation

quazardous
Copy link
Contributor

@quazardous quazardous commented Jan 15, 2017

replace #2 because revised master was too different

@coveralls
Copy link

coveralls commented Jan 15, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 6ddd04d on quazardous:master-clean into 42e1707 on coderaiser:master.

@quazardous
Copy link
Contributor Author

I've not updated the README.md...

const sortFiles = currify((attr, order, array) => {
const cmpCallbacks = {
'numeric': (a, b) => (+a - +b),
'default': (a, b) => (a > b ? 1 : -1),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What difference between numeric and default?

break;
default:
order = 'asc';
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe is better to use if instead of switch in this condition?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2f15081 on quazardous:master-clean into 42e1707 on coderaiser:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2f15081 on quazardous:master-clean into 42e1707 on coderaiser:master.

@coderaiser
Copy link
Owner

Thank you :), merged as e51fa08.

@coderaiser coderaiser closed this Jan 16, 2017
@coderaiser
Copy link
Owner

Landed in v4.1.0.

coderaiser added a commit that referenced this pull request Jun 23, 2017
@coderaiser
Copy link
Owner

coderaiser commented Jun 23, 2017

Added ability to sort directories by date in v4.1.5.

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

Successfully merging this pull request may close these issues.

3 participants