I am using a table query with SQL and it doesn't seem to be using the ORDER BY clause. What am I dong wrong?
Here is the query:
Table tableBestLocation = Table.query("SELECT * FROM $1 ORDER BY 'CycleLastUsed' ASC LIMIT 600",Table("tableStorageStatus")); // tableBestLocation.cloneTo(Table("QueryDump"));
Here is the searched table:
And her is the result table:
With the
ORDER BY 'CycleLastUsed' ASC
I expected (and wanted) the first row in the result to be LocationIndex 2, since its value of CycleLastUsed is lower than that of the first record. (Note that I am looking for the lowest, which may not be zero after a while.)