Changeset 1791:8e343fc769be in orange-bioinformatics for _bioinformatics/widgets/OWSetEnrichment.py


Ignore:
Timestamp:
05/14/13 11:31:50 (11 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

Sorting according to p-values works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWSetEnrichment.py

    r1761 r1791  
    4747            return id(self) < id(other) 
    4848        column = self.treeWidget().sortColumn() 
    49         lhs = _toPyObject(self.data(column, Qt.DisplayRole)) 
    50         rhs = _toPyObject(other.data(column, Qt.DisplayRole)) 
     49        if column == 4: 
     50            lhs = _toPyObject(self.data(column, 42)) 
     51            rhs = _toPyObject(other.data(column, 42)) 
     52        else: 
     53            lhs = _toPyObject(self.data(column, Qt.DisplayRole)) 
     54            rhs = _toPyObject(other.data(column, Qt.DisplayRole)) 
    5155        return lhs < rhs 
    5256 
Note: See TracChangeset for help on using the changeset viewer.