Select the quick sort, because it is a method of sorting that takes less suitable for large amounts of data to speed work. With this function: select a value using the last or the first one to compare. By calling up so that the pivot Then compare the value to value until all sorted