app/js/controllers.js
/*
     Summary: Internal method for quickSort. Swaps two items in the "items" collection as indicated by the two indices
        provided.
     Parameters:
        items: The collection being sorted
        firstIndex: The index of the first item - relative to the "items" collection - to be swapped.
        secondIndex: The index of the second item - relative to the "items" collection - to be swapped.
     */
Internal method for quickSort. Swaps two items in the "items" collection as indicated by the two indices
provided.
Parameters:
items: The collection being sorted
firstIndex: The index of the first item - relative to the "items" collection - to be swapped.
secondIndex: The index of the second item - relative to the "items" collection - to be swapped.
Internal method for quickSort . Swaps two items in the " items " collection as indicated by the two indices provided . Parameters : items : The collection being sorted firstIndex : The index of the first item - relative to the " items " collection - to be swapped . secondIndex : The index of the second item - relative to the " items " collection - to be swapped .
function swap(items, firstIndex, secondIndex) {
        var temp = items[firstIndex];
        items[firstIndex] = items[secondIndex];
        items[secondIndex] = temp;
    }
function swap ( items , firstIndex , secondIndex ) { var temp = items [ firstIndex ] ; items [ firstIndex ] = items [ secondIndex ] ; items [ secondIndex ] = temp ; }
Summary: Internal method for quickSort.
Summary : Internal method for quickSort .