Is there an elegant way to have performant, natural sorting in a MySQL database?
For example if I have this data set:
To order: 0 1 2 10 23 101 205 1000 a aac b casdsadsa css
Use this query:
SELECT column_name FROM table_name ORDER BY column_name REGEXP '^\d*[^\da-z&\.\' \-\"\!\@\#\$\%\^\*\(\)\;\:\\,\?\/\~\`\|\_\-]' DESC, column_name + 0, column_name;