From 8c901bb640af741e24500f42a8db15056b7e4419 Mon Sep 17 00:00:00 2001 From: Cj Malone Date: Sat, 19 Nov 2016 17:54:43 +0000 Subject: [PATCH] Clean up sort --- .../main/java/de/danoeh/antennapod/core/storage/DBReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java index 8c8e8f029..1d57d902c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java @@ -1063,7 +1063,7 @@ public final class DBReader { // reverse natural order: podcast with most unplayed episodes first return -1; } else if(counterLhs == counterRhs) { - return lhs.getTitle().toLowerCase().compareTo(rhs.getTitle().toLowerCase()); + return lhs.getTitle().compareToIgnoreCase(rhs.getTitle()); } else { return 1; } @@ -1077,7 +1077,7 @@ public final class DBReader { } else if(t2 == null) { return -1; } else { - return t1.toLowerCase().compareTo(t2.toLowerCase()); + return t1.compareToIgnoreCase(t2); } }; } else {