Browse Source

Fixing history and download item sorting

master
anthony restaino 8 years ago
parent
commit
3b8f85a86a
  1. 2
      app/src/main/java/acr/browser/lightning/database/HistoryItem.java
  2. 2
      app/src/main/java/acr/browser/lightning/database/downloads/DownloadItem.java

2
app/src/main/java/acr/browser/lightning/database/HistoryItem.java

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

2
app/src/main/java/acr/browser/lightning/database/downloads/DownloadItem.java

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

Loading…
Cancel
Save