Added a sorting algorithm for sorting tests by their test numbers.
Moved sorting to its own file and required it in both app and in.