- Issue created by @Ron Collins
Unfortunately, there is no convenient way to use sorting programmatically in custom queries.
The correct solution would be to add a custom tag to the query and modify the original query in it by adding sorting. The current sorting logic you can check here https://git.drupalcode.org/project/nodeorder/-/blob/3.x/src/NodeOrderLis...