From c77e8553fe72ffe0ebb409ba6270f6ddbe434b59 Mon Sep 17 00:00:00 2001 From: bspeice Date: Sun, 8 Dec 2013 19:49:58 -0500 Subject: [PATCH] Sort alerts by the alarm date --- src/com/uncc/gameday/alerts/AlertDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/uncc/gameday/alerts/AlertDB.java b/src/com/uncc/gameday/alerts/AlertDB.java index e021d35..730f845 100644 --- a/src/com/uncc/gameday/alerts/AlertDB.java +++ b/src/com/uncc/gameday/alerts/AlertDB.java @@ -158,7 +158,7 @@ public class AlertDB extends SQLiteOpenHelper { List alertList = new ArrayList(); - String selectQuery = "SELECT * FROM " + TABLE_ALERTS; + String selectQuery = "SELECT * FROM " + TABLE_ALERTS + " ORDER BY " + KEY_ALARM_DATE + " DESC;"; SQLiteDatabase db = this.getWritableDatabase(); Cursor cursor = db.rawQuery(selectQuery, null);