This commit is contained in:
Adam Velebil 2022-11-28 08:37:14 +01:00
commit ff2bbf0162
No known key found for this signature in database
GPG Key ID: AC6D6B9D715FC084

View File

@ -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));
}),
);