Created
January 25, 2021 20:38
-
-
Save rdelrosario/8d01ba2fe6dccf0255d2f079a04ecd55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sortPredicate = this.WhenAnyValue(x => x.SortBy) | |
.Select(x => x == "Type" ? SortExpressionComparer<Restaurant>.Ascending(a => a.Type) : SortExpressionComparer<Restaurant>.Ascending(a => a.Name)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment