##// END OF EJS Templates
fullreposet: use `sort` to enforce the order...
Pierre-Yves David -
r22833:6f4109aa default
parent child Browse files
Show More
@@ -3020,14 +3020,10 b' class fullreposet(_spanset):'
3020 # we fallback to the old way (sad kitten)
3020 # we fallback to the old way (sad kitten)
3021 return super(fullreposet, self).__and__(other)
3021 return super(fullreposet, self).__and__(other)
3022
3022
3023 # preserve order:
3024 #
3025 # this is probably useless and harmful in multiple cases but matches
3026 # the current behavior.
3027 if self.isascending():
3023 if self.isascending():
3028 other.ascending()
3024 other.sort()
3029 else:
3025 else:
3030 other.descending()
3026 other.sort(reverse)
3031 return other
3027 return other
3032
3028
3033 # tell hggettext to extract docstrings from these functions:
3029 # tell hggettext to extract docstrings from these functions:
General Comments 0
You need to be logged in to leave comments. Login now