Merge "Rank cards in descending score when loading from db."

This commit is contained in:
TreeHugger Robot
2018-11-09 01:13:53 +00:00
committed by Android (Google) Code Review
2 changed files with 40 additions and 1 deletions

View File

@@ -201,7 +201,7 @@ public class CardDatabaseHelper extends SQLiteOpenHelper {
final String selection = CardColumns.CARD_DISMISSED + "=0";
Cursor cursor = db.query(CARD_TABLE, null /* columns */, selection,
null /* selectionArgs */, null /* groupBy */, null /* having */,
null /* orderBy */);
CardColumns.SCORE + " DESC" /* orderBy */);
return cursor;
}