Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ordering in limit_to_last (#692)
When limit_to_last was set, we need to reverse the order. However due to error in comparing the order direction, it was not properly set. comparing `order.direction == self.ASCENDING` is always `False` because there are two different types. The correct way is by comparing `order.direction.name == self.ASCENDING` Fixes #536
- Loading branch information