A Comparison of Sorting Algorithms