I have an sqlite table in my game that keeps track of scores. How do I make one of the columns track scores in ascending order instead of descending order?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The order of the data in the table itself is irrelevant, it’s how you order it when retrieving it via a query is what matters.
In that case, in your SQL select statement, you can add the clause
ORDER BY "column_name" ASCwherecolumn_nameis the column you want to order by.