select t1.first_name from ( select first_name from employees order by RIGHT(first_name,1) ) t1 order by RIGHT(t1.first_name,2) ;