This sort works by iterating through the list of values from the start comparing each pair of values and swapping them if they are in the wrong order
array(Array): the input array[comparator](Function): a function to compare2values *(defaults asc->desc)*[step](Function): an optional function that gets applied at each step
(Array): the sorted array