# Sort

- bogosort [edit] v0.1
*An extremely inefficient sorting method. The array is randomly shuffled until it is sorted.* - bubble_sort [edit] v0.2
*Implementation of the "bubble" sorting method. It repeatedly traverses the array to be sorted, swapping adjacent items that are out of order. It stops once the array is traversed with no swaps.* - insertion_sort [edit] v0.2
*Implementation of "insertion" sort. Traverses the array once, making sure everything that it has passed is in the right order.* - merge_sort [edit] v0.1
*Sort using the merge method. Each half of the array is sorted recursively, then the two sorted halves are merged.* - quick_sort [edit] v0.1
*Implementation of the "quick sort" method. Selects a pivot and then arranges the array into two smaller arrays: items lesser than pivot and items greater than pivot. The two arrays are then recursively quick sorted.* - random_list [edit] v0.1
*Returns a list containing the values between start and end, but in random order.* - random_usort [edit] v0.2
*Callback that can be used in the PHP function usort. It can be used to randomly sort.* - simple_sort [edit] v0.1
*Sort an array and display it.* - sorted [edit] v0.1
*Check if an array is sorted.* - sort_multi_array [edit] v0.1
*Sort a two-dimensional array by one (or more) of the elements in the nested arrays. Accepts a variable number of arguments.*