From 987a87f9390c949d1ac8cc53f554441f8932eb3e Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Fri, 25 Nov 2022 17:14:24 +0100 Subject: [PATCH] Use case-insensitive sort order for credentials. --- lib/oath/state.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/oath/state.dart b/lib/oath/state.dart index 43f0579c3..694dd120e 100755 --- a/lib/oath/state.dart +++ b/lib/oath/state.dart @@ -195,7 +195,8 @@ class FilteredCredentialsNotifier extends StateNotifier> { .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)); }), );