Wells Fargo Interview Question

how to use SQL for data sorting?