Some more optimizations; transformed RDF is now sorted