nl_tokens: FUNCTIONS // FUNCTION : sort ( vector ) Sorts a data vector .
pl_tokens: function sort ( vector ) { // Indexify the vector... var dat = <mask> Array ( vector . length ) ; for ( var i = 0 ; i < vector . length ; i ++ ) { dat [ i ] = [ i , vector [ i ] ] ; } // Sort the data array: dat . sort ( ascending ) ; return dat ; }