implement sortBy in rdf models