Generate sorter Functions for ordering documents and leaves.
Static Functions
private
,
|
Function
getDocSort
(
,
sspec
) {
Creates a complex sort function closing on the provided specification document. Documents are compared according to the specification.
Arguments
Returns
|
Function
A Function suitable for use with standard sorting
.