/unspent: order output by appearance in chain