packages/extension-map/doc/webpacks/shexmap-webapp.js
/* byObject - sort triples by object following SPARQL partial ordering.
 */
sort triples by object following SPARQL partial ordering.
sort triples by object following SPARQL partial ordering .
function byObject (t1, t2) {
  const l = t1.object, r = t2.object;
  const lprec = ShExTerm.isBlank(l) ? 1 : ShExTerm.isLiteral(l) ? 2 : 3;
  const rprec = ShExTerm.isBlank(r) ? 1 : ShExTerm.isLiteral(r) ? 2 : 3;
  return lprec === rprec ? l > r : lprec > rprec;
}
function byObject ( t1 , t2 ) { const l = t1 . object , r = t2 . object ; const lprec = ShExTerm . isBlank ( l ) ? 1 : ShExTerm . isLiteral ( l ) ? 2 : 3 ; const rprec = ShExTerm . isBlank ( r ) ? 1 : ShExTerm . isLiteral ( r ) ? 2 : 3 ; return lprec === rprec ? l > r : lprec > rprec ; }
byObject - sort triples by object following SPARQL partial ordering.
byObject - sort triples by object following SPARQL partial ordering .
// if (t1.predicate !== t2.predicate) // sort predicate first for easier scanning of results //   return t1.predicate > t2.predicate;