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

Sort Question (Secondary sort criteria) #795

Open
nizarl opened this issue Sep 8, 2017 · 0 comments
Open

Sort Question (Secondary sort criteria) #795

nizarl opened this issue Sep 8, 2017 · 0 comments

Comments

@nizarl
Copy link

nizarl commented Sep 8, 2017

This is only a question. -Thanks in advance.

How would you recommend to use the sort getter if there is a primary and secondary sort.

Example:
If the below criteria has 2 of the same values I would like to use another value to do secondary sort. Both values are available inside this function.

In this example if firstName is the same I would like secondary sort by age.

scope.getters={
firstName: function (value) {
return value.firstName;
}
}

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