Adding more granular sorting algorithm.