Support for queries with order by

Todo: For now only with server, but will use the same cypher for the embedded db