mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
sort games by whose turn it is, local at top
This commit is contained in:
parent
b64bf82278
commit
4b25d17dbf
1 changed files with 2 additions and 1 deletions
|
@ -1630,7 +1630,8 @@ public class DBUtils {
|
|||
initDB( context );
|
||||
String[] columns = { ROW_ID };
|
||||
String selection = String.format( "%s=%d", DBHelper.GROUPID, groupID );
|
||||
String orderBy = DBHelper.CREATE_TIME + " DESC";
|
||||
String orderBy = String.format( "%s,%s DESC,%s", DBHelper.GAME_OVER,
|
||||
DBHelper.TURN_LOCAL, DBHelper.LASTMOVE );
|
||||
synchronized( s_dbHelper ) {
|
||||
SQLiteDatabase db = s_dbHelper.getReadableDatabase();
|
||||
Cursor cursor = db.query( DBHelper.TABLE_NAME_SUM, columns,
|
||||
|
|
Loading…
Reference in a new issue