Default Sort Order in Gremlin Query
Is there any Default sort order in Gremlin Query if we do not provide any explicit order? Whenever I ran Gremlin query multiple times, it gives the results in some random order, just need understand how this order is defined internally? I am using Janusgraph with remote gremlin servers
2 Replies
sorry - we somehow missed this question.
Gremlin does not enforce any order, mostly because most graphs don't offer order guarantees. If you need a particular order then you should use the
order()
step explicitly.Thanks for the clarification, really appreciate your help