Sort by valid from date (#2297)

This commit is contained in:
Christos Tsingiropoylos
2025-01-15 23:01:25 +02:00
committed by GitHub
parent be54c50786
commit 9a1d7d2e44
3 changed files with 7 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ public class DBHelper extends SQLiteOpenHelper {
public enum LoyaltyCardOrder {
Alpha,
LastUsed,
ValidFrom,
Expiry
}
@@ -916,6 +917,10 @@ public class DBHelper extends SQLiteOpenHelper {
return LoyaltyCardDbIds.LAST_USED;
}
if (order == LoyaltyCardOrder.ValidFrom) {
return LoyaltyCardDbIds.VALID_FROM;
}
if (order == LoyaltyCardOrder.Expiry) {
return LoyaltyCardDbIds.EXPIRY;
}