When the list contains just one value, return it instead of trying to sort the list with a QCollator.