47 |
47 |
48 @param left index of left item (QModelIndex) |
48 @param left index of left item (QModelIndex) |
49 @param right index of right item (QModelIndex) |
49 @param right index of right item (QModelIndex) |
50 @return true, if left is less than right (boolean) |
50 @return true, if left is less than right (boolean) |
51 """ |
51 """ |
52 l = left.model() and left.model().item(left) or None |
52 le = left.model() and left.model().item(left) or None |
53 r = right.model() and right.model().item(right) or None |
53 ri = right.model() and right.model().item(right) or None |
54 |
54 |
55 if l and r: |
55 if le and ri: |
56 return l.lessThan(r, self.__sortColumn, self.__sortOrder) |
56 return le.lessThan(ri, self.__sortColumn, self.__sortOrder) |
57 |
57 |
58 return False |
58 return False |
59 |
59 |
60 def item(self, index): |
60 def item(self, index): |
61 """ |
61 """ |