URI: 
       tget_sorted_request: sort by address index, not by timestamp - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a1ef7c4bb68aabca9834d9ee4fe32c287ce49854
   DIR parent eebc8ecc0fc30e5be6b0d02f27c65908cd08150c
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Mon, 15 Feb 2016 08:23:34 +0100
       
       get_sorted_request: sort by address index, not by timestamp
       
       Diffstat:
         M lib/wallet.py                       |       8 +++++++-
       
       1 file changed, 7 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -1400,7 +1400,13 @@ class Abstract_Wallet(PrintError):
                return True
        
            def get_sorted_requests(self, config):
       -        return sorted(map(lambda x: self.get_payment_request(x, config), self.receive_requests.keys()), key=lambda x: x.get('time', 0))
       +        def f(x):
       +            try:
       +                addr = x.get('address')
       +                return self.get_address_index(addr)
       +            except:
       +                return -1, (0, 0)
       +        return sorted(map(lambda x: self.get_payment_request(x, config), self.receive_requests.keys()), key=f)