Traceback (most recent call last):
  File "/home/sander/projects/electrum/electrum/electrum/gui/qml/qeinvoice.py", line 672, in saveInvoice
    self._wallet.wallet.save_invoice(self._effectiveInvoice)
  File "/home/sander/projects/electrum/electrum/electrum/wallet.py", line 1102, in save_invoice
    self.save_db()
  File "/home/sander/projects/electrum/electrum/electrum/wallet.py", line 395, in save_db
    self.db.write(self.storage)
  File "/home/sander/projects/electrum/electrum/electrum/wallet_db.py", line 1567, in write
    self._write(storage)
  File "/home/sander/projects/electrum/electrum/electrum/util.py", line 470, in <lambda>
    return lambda *args, **kw_args: do_profile(args, kw_args)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/util.py", line 465, in do_profile
    o = func(*args, **kw_args)
        ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/wallet_db.py", line 1576, in _write
    json_str = self.dump(human_readable=not storage.is_encrypted())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/json_db.py", line 44, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sander/projects/electrum/electrum/electrum/json_db.py", line 189, in dump
    return json.dumps(
           ^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
          ^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 202, in encode
    chunks = list(chunks)
             ^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 432, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.11/json/encoder.py", line 406, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.11/json/encoder.py", line 354, in _iterencode_dict
    items = sorted(dct.items())
            ^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'int' and 'str'