167 @param other reference to item to compare against (BrowserItem) |
167 @param other reference to item to compare against (BrowserItem) |
168 @param column column number to use for the comparison (integer) |
168 @param column column number to use for the comparison (integer) |
169 @param order sort order (Qt.SortOrder) (for special sorting) |
169 @param order sort order (Qt.SortOrder) (for special sorting) |
170 @return true, if this item is less than other (boolean) |
170 @return true, if this item is less than other (boolean) |
171 """ |
171 """ |
172 if issubclass(other.__class__, BrowserFileItem): |
172 if ( |
173 if Preferences.getUI("BrowsersListFoldersFirst"): |
173 issubclass(other.__class__, BrowserFileItem) and |
174 return order == Qt.SortOrder.AscendingOrder |
174 Preferences.getUI("BrowsersListFoldersFirst") |
|
175 ): |
|
176 return order == Qt.SortOrder.AscendingOrder |
175 |
177 |
176 return BrowserItem.lessThan(self, other, column, order) |
178 return BrowserItem.lessThan(self, other, column, order) |
177 |
179 |
178 |
180 |
179 class ProjectBrowserDirectoryItem(BrowserDirectoryItem, |
181 class ProjectBrowserDirectoryItem(BrowserDirectoryItem, |