Sorting doesn't work on queries with cascade

@danielhr is the issue solved? I encounter the same issue on dgraph v22.02