I want to get data from mysql table sorted by one of varchar columns. So let's say I have a query like this:
SELECT name, model FROM vehicle ORDER BY model
The problem is that for "model" values ββlike these: 43 ', 111', the order will be:
S 111 S 43
because I assume that ORDER BY uses alphabetical rules, right? So, how to change this query to get a "numerical" order? In which 43 'would be up to 111'? Without changing or adding any data to this table.
source share