Fixing history and download item sorting

This commit is contained in:
anthony restaino 2017-06-10 16:30:46 -04:00
parent ee2cf5fd35
commit 3b8f85a86a
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public class HistoryItem implements Comparable<HistoryItem> {
@Override @Override
public int compareTo(@NonNull HistoryItem another) { public int compareTo(@NonNull HistoryItem another) {
int compare = this.mTitle.compareTo(another.mTitle); int compare = this.mTitle.compareToIgnoreCase(another.mTitle);
if (compare == 0) { if (compare == 0) {
return this.mUrl.compareTo(another.mUrl); return this.mUrl.compareTo(another.mUrl);
} }

View File

@ -62,7 +62,7 @@ public class DownloadItem implements Comparable<DownloadItem> {
@Override @Override
public int compareTo(@NonNull DownloadItem another) { public int compareTo(@NonNull DownloadItem another) {
int compare = this.mTitle.compareTo(another.mTitle); int compare = this.mTitle.compareToIgnoreCase(another.mTitle);
if (compare == 0) { if (compare == 0) {
return this.mUrl.compareTo(another.mUrl); return this.mUrl.compareTo(another.mUrl);
} }