Sorting values is quite a standard task, and it can be done in various ways. Every computer science student who was tortured with having to learn a majority of existing sorting algorithms (together with their performance and stability trade-offs for exams) knows that.
Because this is a solved problem, programmers should not waste their time in solving it again, except if it is for learning purposes.