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