Skip to content

Commit

Permalink
Merge pull request #3 from harjot-oberai/p2p
Browse files Browse the repository at this point in the history
Added : Sort Functionality
  • Loading branch information
harjot-oberai committed Feb 19, 2016
2 parents 461148f + eac5b8e commit 7154294
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 7154294

Please sign in to comment.