Sorting works. All that is left in prediction is the algorithm.