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

sorted(Collections.reverseOrder()) doesn't work like this #2116

Closed
Axle1975 opened this issue Jan 15, 2021 · 0 comments · Fixed by #2117
Closed

sorted(Collections.reverseOrder()) doesn't work like this #2116

Axle1975 opened this issue Jan 15, 2021 · 0 comments · Fixed by #2117
Milestone

Comments

@Axle1975
Copy link

The call to "sorted(Collections.reverseOrder())" doesn't actually reverse the existing order. It re-sorts the stream independently of any previous sorting. As such we actually end up with reverse lexical sorting, not reverse timestamp sorting.

@Sheikah45 Sheikah45 added this to the v1.4.0 milestone Jan 16, 2021
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.

2 participants