Groups quads by rdf:type, then sorts alphabetically within each type.
Compare two quads for sorting.
Pre-process quads to build indexes for efficient sorting.
The quads to prepare for sorting
Groups quads by rdf:type, then sorts alphabetically within each type.