How is sorting done under the hood in DQL?

If you read Go code, this should be enough to get you started.

LMK if you need additional help. I’ll jump on a call with you if you need to