Problem
Implement mySort(arr, comparator) using QuickSort. The comparator follows the native convention: negative if a before b, positive if a after b. Default to ascending numeric/lexicographic order.
function mySort(arr, comparator) {
// QuickSort here
}