equal
deleted
inserted
replaced
2517 self._ascending = not reverse |
2517 self._ascending = not reverse |
2518 else: |
2518 else: |
2519 if bool(self._ascending) == bool(reverse): |
2519 if bool(self._ascending) == bool(reverse): |
2520 self.reverse() |
2520 self.reverse() |
2521 |
2521 |
|
2522 def isascending(self): |
|
2523 return self._ascending is not None and self._ascending |
|
2524 |
|
2525 def isdescending(self): |
|
2526 return self._ascending is not None and not self._ascending |
|
2527 |
2522 def reverse(self): |
2528 def reverse(self): |
2523 self._list.reverse() |
2529 self._list.reverse() |
2524 if self._ascending is not None: |
2530 if self._ascending is not None: |
2525 self._ascending = not self._ascending |
2531 self._ascending = not self._ascending |
2526 |
2532 |