Changeset 1150


Ignore:
Timestamp:
Jan 31, 2006 11:41:41 AM (13 years ago)
Author:
hazmat
Message:

sort list of fields before returning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zmitopic/trunk/topic.py

    r1149 r1150  
    6262        catalog = getattr( self, self.catalog_id ) 
    6363        cids = [cid[6:] for cid in self.objectIds()] 
    64         return [iid for iid in catalog.indexes() if iid not in cids] 
     64        available_fields = [iid for iid in catalog.indexes() if iid not in cids] 
     65        available_fields.sort() 
     66        return available_fields 
    6567 
    6668    def listCriteriaTypes(self): 
Note: See TracChangeset for help on using the changeset viewer.