Sort nanopub statements in utility method