sort coins by age in get_unspent_coins()