Utility method to sort a , b , c ; after this method a <= b <= c
function order ( ) { let copy = new Array ( 3 ) ; copy [ 0 ] = a ; copy [ 1 ] = b ; copy [ 2 ] = c ; ( copy ) . sort ( function ( a , b ) { return a - b ; } ) ; a = copy [ 0 ] ; b = copy [ 1 ] ; c = copy [ 2 ] ; }