vendredi 11 décembre 2015

sqlite orderby not working in android

i have a problem with this code:

Cursor c = db.db.rawQuery("SELECT * FROM Rankings WHERE " + DataBaseAdapter.R_RID + " = " + strID +
            " ORDER BY " + DataBaseAdapter.R_POINT + " DESC", null);

my code works correctly until the numbers goes up to 10 Look at the Result:
8
7
6
12
11

is there anyone that help me to get something like this:
12
11
10
8
7 and...

Aucun commentaire:

Enregistrer un commentaire