bitcoin/bitcoin — pull request #3048 by kybl (2013-10-01 20:49:38+00:00)
Title: Command "listunspent" returns outputs sorted by amount (instead of unsorted)

I often see how many and which outputs are unspent (and try to guess which inputs will be used in next payment, and so on). This can be done by command "listunspent" but now it's a little bit unpractical. Outputs are not sorted by any key and when outputs count is more than 10, it's badly readable. This patch sorts outputs by amount, ascending.

**Pros:**
- better readability of outputs

**Cons:**
- complexity of printing is n*log(n) instead of n (where n is number of outputs)
- maybe question why to sort by amount and no by any other key (but I think that better any sort than no sort)

For me, this is very useful. If you find it useful too, I'll be glad when it will be pulled to master.