Zkuste prosím:
select *
From tbl
order by cast(Left(Col, PatIndex('%[^0-9]%', Col)) as int)
Pro MySql zkuste:
select *
From tbl
order by convert(SUBSTRING_INDEX(Col, ' ', 1), UNSIGNED INTEGER)
Zkuste prosím:
select *
From tbl
order by cast(Left(Col, PatIndex('%[^0-9]%', Col)) as int)
Pro MySql zkuste:
select *
From tbl
order by convert(SUBSTRING_INDEX(Col, ' ', 1), UNSIGNED INTEGER)