Here is a quick solution:
SELECT alphanumeric,
integer
FROM sorting_test
ORDER BY LENGTH(alphanumeric), alphanumeric
More Related Contents:
- Humanized or natural number sorting of mixed word-and-number strings
- Alphanumeric sorting with PostgreSQL
- MySQL LIKE IN()?
- In MySQL queries, why use join instead of where?
- Why would an IN condition be slower than “=” in sql?
- PostgreSQL GROUP BY different from MySQL?
- GROUP BY behavior when no aggregate functions are present in the SELECT clause
- MySQL dump by query
- SQLite – ORDER BY RAND()
- Delete sql rows where IDs do not have a match from another table
- How to search multiple columns in MySQL?
- In SQL / MySQL, what is the difference between “ON” and “WHERE” in a join statement?
- How to use SQL Order By statement to sort results case insensitive?
- What does DELIMITER // do in a Trigger?
- Does Mysql have an equivalent to @@ROWCOUNT like in mssql?
- MySQL equivalent of DECODE function in Oracle
- How do you version your database schema? [closed]
- PostgreSQL ORDER BY issue – natural sort
- MySQL, Get users rank
- Mysql: how to select groups having certain values?
- How to fill date gaps in MySQL?
- Adding a new SQL column with a default value
- Boolean vs tinyint(1) for boolean values in MySQL
- MySQL full text search for words with three or less letters
- MySQL: “The SELECT would examine more than MAX_JOIN_SIZE rows”
- Function for week of the month in mysql
- MySQL’s alternative to T-SQL’s WITH TIES
- Find rows that have the same value on a column in MySQL
- what is the difference between GROUP BY and ORDER BY in sql
- How do MySQL views work?