Sorting and indexing

Noted the 2-step approach and will do away with the “same worker serving both” assumption.

Regarding new RPC call: Can I add a new structure other than task.Query? Maybe that’s what you imply already.