Skip to content

Commit

Permalink
Merge pull request #842 from mikependon/faster-order-by
Browse files Browse the repository at this point in the history
Using Comparer for OrderBy
  • Loading branch information
mikependon authored Jun 29, 2021
2 parents 93adb08 + 18472b5 commit e22685b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RepoDb.Core/RepoDb/QueryGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private void ResetQueryGroups()
private void FixQueryFields(IEnumerable<QueryField> fields)
{
var firstList = fields
.OrderBy(queryField => queryField.Parameter.Name)
.OrderBy(queryField => queryField.Parameter.Name, StringComparer.OrdinalIgnoreCase)
.AsList();
var secondList = new List<QueryField>(firstList);

Expand Down

0 comments on commit e22685b

Please sign in to comment.