nl_tokens: Sort nodes of a hierarchical facet results
pl_tokens: function recSort ( sortFn , node ) { if ( ! <mask> . data || node . data . length === 0 ) { return node ; } var children = map ( node . data , partial ( recSort , sortFn ) ) ; var sortedChildren = sortFn ( children ) ; var newNode = merge ( { } , node , { data : sortedChildren } ) ; return newNode ; }