Is there any way to sort Elements in MySQL like this:
Elements:
When i do the ORDER BY the list looks this way:
Because all answer did not match to my special problem i edit my question. There are also Elements with Chars behind the numbers. Watch the example
I use this and it works well:
ORDER BY LENGTH(Elements), Elements
Try this trick - 'ORDER BY column_name+1', e.g.:
SELECT * FROM element
ORDER BY column_name+1;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With