Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ivy 12 Sorting/Ordering not working #73

Open
stefanmasek opened this issue Dec 16, 2024 · 0 comments · May be fixed by #74
Open

Ivy 12 Sorting/Ordering not working #73

stefanmasek opened this issue Dec 16, 2024 · 0 comments · May be fixed by #74

Comments

@stefanmasek
Copy link

stefanmasek commented Dec 16, 2024

Dear @ivy-sgi, we have found the following bug:

Describe the bug
The ordering/sorting doesn't work and is always ascending if using Ivy 12. My investigation found that it's because of the following reason:

In Ivy 12 there is a new version of Hibernate that changed the implementation of the OrderImpl.reverse() method as following:

public Order reverse() {
    return new OrderImpl( expression, !ascending );
}

Now this method returns a new instance with the reversed ordering (before it changed the ordering for current instance).
This caused a bug which broke the ordering at exactly this location

Expected behavior
The set sorting is considered instead of always being ascending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant