Fixing history and download item sorting
This commit is contained in:
parent
ee2cf5fd35
commit
3b8f85a86a
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user