Implement sorting menu option.

This commit is contained in:
Brian Pellin committed 2010-06-12 18:44:34 -05:00
1 parent 80b8dba6b8
commit 905f5b9bb7
23 files changed
+188 -184

No files matched your search

+10 -1
View File
@@ -19,12 +19,21 @@
*/
package com.keepassdroid.database;
import java.util.Comparator;
import java.util.Date;
import java.util.UUID;
public abstract class PwEntry implements Cloneable {
// TODO none of these belong here. They aren't stored this way in PwEntryV4
public static class EntryNameComparator implements Comparator<PwEntry> {
@Override
public int compare(PwEntry object1, PwEntry object2) {
return object1.getTitle().compareToIgnoreCase(object2.getTitle());
}
}
public int imageId;