ref: Sort results of ListRefs
In order to provide more flexibility to our API we are extending ListRefs RPC with sorting. The caller now can set a sorting key and a direction in which the results will be returned back.
Closes: #3855 (closed) Change: added