In the following SQL statement, SQLite sorts correctly but MySQL does not:

However, if I don’t include the quotation marks around the field names, it works correctly:

Can anyone explain the behavior that MySQL but not SQLite would not sort correctly if a field is defined with quotation marks?
"TotalOrders"(with double quotes) is a constant string – ordering by it doesn’t do anything … in essence you get the unsorted sequence of rows, which might seem to be correctly sorted.You want
with backticks. which is the column identifier.