I have one table like
CREATE TABLE table_name ( P_Id int, amount varchar(50) )
Data Like
Id amount ---------- 1 2340 2 4568 3
Cast amount column into Numeric in ORDER BY clause while selecting:
ORDER BY
SELECT * FROM MyTable ORDER BY CAST(amount AS Numeric(10,0)) DESC
Result:
See this SQLFiddle