Skip to content

Commit

Permalink
Added : Sort Functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
harjot-oberai committed Feb 19, 2016
1 parent 2785b71 commit eac5b8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public scoreboard getPlayer(String name) {
public List<scoreboard> getAllContacts() {
List<scoreboard> scoreList = new ArrayList<scoreboard>();
// Select All Query
String selectQuery = "SELECT * FROM " + TABLE_SCORES;
String selectQuery = "SELECT * FROM " + TABLE_SCORES + " ORDER BY " + KEY_SCORE + " DESC";

SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(selectQuery, null);
Expand Down

0 comments on commit eac5b8e

Please sign in to comment.