Sorting problem

Given an unsorted list of numbers can you return a sorted list for a given comparison.

Different approaches