用mysql的话有函数 right 函数。就是取右边第几位的意思,同样还有一个 left 函数。
select * from salaries order by right(emp_no,2)

但是本题数据库是SQlite 只能用substr
substr(emp_no,-2)