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

Unable to sort multiple fields with OrderBy #94

Open
sancho21 opened this issue Jul 9, 2022 · 0 comments
Open

Unable to sort multiple fields with OrderBy #94

sancho21 opened this issue Jul 9, 2022 · 0 comments

Comments

@sancho21
Copy link

sancho21 commented Jul 9, 2022

Supposed that we have list of objects which have internalScore and externalScore. OrderBy can only sort one field only, either those two. If there are 2 records having the same internalScore, when it's already sorted by internalScore, then externalScore cannot be sorted. So, at the moment OrderBy cannot do this.

I wish it allowed us to call OrderBy multiple times which adds up instead of overriding it.

It's similar to SQL functionality:

SELECT * FROM tbl_Employee ORDER BY lastName ASC, Salary DESC
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