nl_tokens: Creates an array of elements sorted in ascending order by the results of running each element in a collection through the callback . This method performs a stable sort that is it will preserve the original sort order of equal elements . The callback is bound to thisArg and invoked with three arguments ; ( value index|key collection ) .
pl_tokens: function sortBy ( collection , callback , thisArg ) { var index = - 1 , length = collection ? collection . length : 0 , result = Array ( typeof length == 'number' ? length : 0 ) ; callback = lodash . createCallback ( callback , thisArg , 3 ) ; forEach ( collection , function ( value , <mask> , collection ) { var object = result [ ++ index ] = getObject ( ) ; object . criteria = callback ( value , key , collection ) ; object . index = index ; object . value = value ; } ) ; length = result . length ; result . sort ( compareAscending ) ; while ( length -- ) { var object = result [ length ] ; result [ length ] = object . value ; releaseObject ( object ) ; } return result ; }