Changeset 486:04908862a0b2


Ignore:
Timestamp:
09/07/13 15:38:40 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
62333462666335363031313964303035353233636662316536366131396133393864613466663435
Message:

Sort object editor list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r483 r486  
    287287    def __init__(self, data):
    288288        super(ObjectTable, self).__init__(height=450)
    289         self.data = data
     289        self.data = sorted(data,
     290                           key=lambda d: (d.get('classname'), d.get('name')))
    290291        self.selected_row = -1
    291292
Note: See TracChangeset for help on using the changeset viewer.