sort favorites by publication date

This commit is contained in:
Tom Hennen 2015-11-05 16:59:57 -05:00
parent 3b003c60ab
commit d2717979be
1 changed files with 2 additions and 2 deletions

View File

@ -1052,8 +1052,8 @@ public class PodDBAdapter {
TABLE_NAME_FEED_ITEMS, TABLE_NAME_FAVORITES,
TABLE_NAME_FEED_ITEMS + "." + KEY_ID,
TABLE_NAME_FAVORITES + "." + KEY_FEEDITEM,
TABLE_NAME_FAVORITES + "." + KEY_ID };
String query = String.format("SELECT %s FROM %s INNER JOIN %s ON %s=%s ORDER BY %s", args);
TABLE_NAME_FEED_ITEMS + "." + KEY_PUBDATE };
String query = String.format("SELECT %s FROM %s INNER JOIN %s ON %s=%s ORDER BY %s DESC", args);
Cursor c = db.rawQuery(query, null);
return c;
}