Sort http clients correctly

Sorting by ref addresses looks wrong, so it's better to sort by `order` keys, which I guess were meant for sorting initially.