1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed 706aae4

Sorting no longer requires special handling of unknown values.

  • Participants
  • Parent commits 32e5815
  • Branches default

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/Prototypes/OWDataSort.py

View file
 
 
 def sort_key(params):
-    def value(val):
-        if val.isSpecial():
-            return float("inf")
-        else:
-            return val
-
     def key(inst):
         return tuple(
-            value(inst[feature]) if order == Qt.AscendingOrder
-                else rev_compare(value(inst[feature]))
+            inst[feature] if order == Qt.AscendingOrder
+                else rev_compare(inst[feature])
             for feature, order in params
         )
     return key