select * from loan order by amount desc, loan# asc
from loan
order by amount desc, loan# asc
Sorting can be costly, and should only be done when needed.