Skip to content

Commit

Permalink
Use case-insensitive sort order for credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Nov 25, 2022
1 parent 8ebcafe commit 987a87f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oath/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ class FilteredCredentialsNotifier extends StateNotifier<List<OathPair>> {
.where((pair) => pair.credential.issuer != '_hidden')
.toList()
..sort((a, b) {
String searchKey(OathCredential c) => (c.issuer ?? '') + c.name;
String searchKey(OathCredential c) =>
((c.issuer ?? '') + c.name).toLowerCase();
return searchKey(a.credential).compareTo(searchKey(b.credential));
}),
);
Expand Down

0 comments on commit 987a87f

Please sign in to comment.