ability to choose between sorting algorithms