Closed amitgodse1 closed 9 years ago
For number value, it is sorted as numeric. So you will get as expected result.
But, if your phone is string, it will be, from your result, it is sorted by string. ydn-db will not modify the field value. Setting INTEGER
is only meaningful only for WebSQL.
My Code:
I want to retrieve my data sorted my phone which is INTEGER. I have tried all Sorting method like ,
or
Result :
1 11 2 3 33 4
Where my expected result should be:
1 2 3 4 11 33
Sorting its considering INTEGER as string. Is there way to sort data by datatype while retrieving from object store.?