Infosys interview question

Sorting Technique with code, DBMS, SQL, Oops