Ignore:
Timestamp:
10/16/13 18:25:03 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Sorting no longer requires special handling of unknown values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Prototypes/OWDataSort.py

    r11721 r11735  
    216216 
    217217def sort_key(params): 
    218     def value(val): 
    219         if val.isSpecial(): 
    220             return float("inf") 
    221         else: 
    222             return val 
    223  
    224218    def key(inst): 
    225219        return tuple( 
    226             value(inst[feature]) if order == Qt.AscendingOrder 
    227                 else rev_compare(value(inst[feature])) 
     220            inst[feature] if order == Qt.AscendingOrder 
     221                else rev_compare(inst[feature]) 
    228222            for feature, order in params 
    229223        ) 
Note: See TracChangeset for help on using the changeset viewer.