Creates a complex sort function closing on the provided specification document. Documents are compared according to the specification.
A Function suitable for use with standard sorting.
standard sorting