I am writing an Iphone app and using sqlite as my database. I have 10 objects and I need to order them by their category id. All the id are numbers (starting from 1 to 10).
The sql statement looks like this: SELECT * FROM PACKAGE ORDER BY CATEGORYID ASC
When I query, the result shows 1,10,2,3,4….9.
How do i solve this?
maybe it’s because that the categoryID is
TEXT