This is a basic example of a quickSort algorithm, quick sort is the quickest sorting algorithm wit a time complexity of nlogn