app/js/controllers.js
/*
     Summary: This function utilizes the Quick sort algorithm to sort the collection passed through the "items" parameter.
     Parameters:
        items: The collection to be sorted. Passed by reference.
        left: The left index.
        right: The right index.
     */
This function utilizes the Quick sort algorithm to sort the collection passed through the "items" parameter.
Parameters:
items: The collection to be sorted. Passed by reference.
left: The left index.
right: The right index.
This function utilizes the Quick sort algorithm to sort the collection passed through the " items " parameter . Parameters : items : The collection to be sorted . Passed by reference . left : The left index . right : The right index .
function quickSort(items, left, right) {
        var index;
        if (items.length > 1) {
            index = partition(items, left, right);
            if (left < index - 1) {
                quickSort(items, left, index -1);
            }
            if (index < right) {
                quickSort(items, index, right);
            }
        }
    }
function quickSort ( items , left , right ) { var index ; if ( items . length > 1 ) { index = partition ( items , left , right ) ; if ( left < index - 1 ) { quickSort ( items , left , index - 1 ) ; } if ( index < right ) { quickSort ( items , index , right ) ; } } }
Summary: This function utilizes the Quick sort algorithm to sort the collection passed through the "items" parameter.
Summary : This function utilizes the Quick sort algorithm to sort the collection passed through the " items " parameter .