From 94c9b5be645d4abcb8f3374c6a4963b5cfa14335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rutkowski?= Date: Mon, 17 Apr 2017 13:59:51 +0200 Subject: [PATCH] Make passwords sort case insensitive (#290) --- app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java index 2d9086ea4..404091b20 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordItem.java @@ -104,6 +104,6 @@ public class PasswordItem implements Comparable{ PasswordItem other = (PasswordItem) o; // Appending the type will make the sort type dependent return (this.getType() + this.getName()) - .compareTo(other.getType() + other.getName()); + .compareToIgnoreCase(other.getType() + other.getName()); } }