Skip to content

Commit d43a063

Browse files
Merge pull request #19493 from unoplatform/dev/mazi/sort-samples
chore: Sort sample names during search
2 parents ca04335 + d0dd29d commit d43a063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SamplesApp/SamplesApp.UnitTests.Shared/Controls/UITests/Presentation/SampleChooserViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private async Task<List<SampleChooserContent>> SearchAsync(string search, List<S
631631

632632
// Order the results by showing the "start with" results
633633
// followed by results that "contain" the search term
634-
return starts.Concat(contains).Distinct().ToList();
634+
return starts.Concat(contains).OrderBy(s => s.ControlName).Distinct().ToList();
635635
});
636636
}
637637

0 commit comments

Comments
 (0)