Bug Report
Description
Hi @dimitri-yatsenko,
I've noticed some strange behavior when trying to restrict a query with dj.Top(), and I'm not sure if it's intended or not. The returned query seems to change as the limit argument changes. (See attached screenshot)
Reproducibility
Include:
- OS: Windows
- Python Version: 3.10.19
- DataJoint Version: 0.14.6
Expected Behavior
I would expect the top of the returned query to be the same, regardless of the limit that is set (especially when order_by gets applied)
Screenshots

Bug Report
Description
Hi @dimitri-yatsenko,
I've noticed some strange behavior when trying to restrict a query with dj.Top(), and I'm not sure if it's intended or not. The returned query seems to change as the limit argument changes. (See attached screenshot)
Reproducibility
Include:
Expected Behavior
I would expect the top of the returned query to be the same, regardless of the limit that is set (especially when order_by gets applied)
Screenshots