mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 13:09:46 +01:00
properly sort by name
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
85b2cea618
commit
d785d3aa21
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
package third_parties.daveKoeller;
|
package third_parties.daveKoeller;
|
||||||
|
|
||||||
|
import com.nextcloud.talk.components.filebrowser.adapters.items.BrowserFileItem;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
@ -85,9 +87,9 @@ public class AlphanumComparator<T> implements Comparator<T>, Serializable {
|
|||||||
return chunk.toString();
|
return chunk.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int compare(File f1, File f2) {
|
public int compare(BrowserFileItem f1, BrowserFileItem f2) {
|
||||||
String s1 = f1.getPath();
|
String s1 = f1.getModel().path;
|
||||||
String s2 = f2.getPath();
|
String s2 = f2.getModel().path;
|
||||||
|
|
||||||
return compare(s1, s2);
|
return compare(s1, s2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user