Merge "Rank cards in descending score when loading from db."
This commit is contained in:
committed by
Android (Google) Code Review
commit
0d9e4a4b0e
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user