How to write the sql so that the result can be ordered first by column A than by column B. Something like below:
SELECT * FROM tbl WHERE predictor ORDER by col_A and ORDER by col_B
ORDER BY col_A, col_B
The SQLite website has syntax diagrams explaining the SQL grammar supported by SQLite.