Skip to content

Commit

Permalink
fix(search): correct case insensitive sorting (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
khwolf authored Dec 27, 2023
1 parent 5bab953 commit 9c9fc4d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ class AppDrawerAdapter(
onlyFirstStringStartsWith(a.displayName, b.displayName, filterQuery) -> -1
onlyFirstStringStartsWith(b.displayName, a.displayName, filterQuery) -> 1
// if both or none start with the query sort in normal oder
a.displayName > b.displayName -> 1
a.displayName < b.displayName -> -1
else -> 0
else -> a.displayName.compareTo(b.displayName, true)
}
}.map { AppDrawerRow.Item(it) }
// building a list with each letter and filtered app resulting in a list of
Expand Down

0 comments on commit 9c9fc4d

Please sign in to comment.