You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: