6D Technologies interview question

What is binary sort Write sql query Swap the numbers