Coretex interview question

How do you implement sorting as problem solving approach