nl_tokens: This function takes an object like grunt . config . get ( default ) and returns a topologically sorted array of tasks .
pl_tokens: function sortTasks ( obj ) { var nodes = _ . keys ( obj ) ; var edges = _ ( obj ) . chain ( ) . pairs ( ) . <mask> ( function ( o ) { return _ . map ( o [ 1 ] . dependencies || [ ] , function ( d ) { return [ d , o [ 0 ] ] ; } ) ; } ) . flatten ( true ) . value ( ) ; var sorted = toposort . array ( nodes , edges ) ; return sorted ; }