timsort.js
/**
 * Reverse the specified range of the specified array.
 * @param {Array} a 
 * @param {Number} lo 
 * @param {Number} hi 
 */
Reverse the specified range of the specified array.
Reverse the specified range of the specified array .
function reverseRange(a, lo, hi){
    hi--;
    while (lo < hi) {
        let t = a[lo];
        a[lo++] = a[hi];
        a[hi--] = t;
    }
}
function reverseRange ( a , lo , hi ) { hi -- ; while ( lo < hi ) { let t = a [ lo ] ; a [ lo ++ ] = a [ hi ] ; a [ hi -- ] = t ; } }
Reverse the specified range of the specified array.
Reverse the specified range of the specified array .