As far as I can tell, all unordered or without order will be ordered by uid. But UID ordering isn’t sorting order friendly. Cuz it is randomly assigned.
From Docs:
Note Without a sort order specified, the results are sorted by
uid, which is assigned randomly. So the ordering, while deterministic, might not be what you expected. Source: Get started with Dgraph
Query Example: A movie in each genre that has over 30000 movies. Because there is no order specified on genres, the order will be by UID.
That feels wrong. It is ascending by default.
You can’t explicitly set uid as order param. By it is already ordered by uid.
Cheers.