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

Wrong quest steps sorting order #11

Closed
Kreozot opened this issue Mar 23, 2024 · 0 comments · Fixed by #12
Closed

Wrong quest steps sorting order #11

Kreozot opened this issue Mar 23, 2024 · 0 comments · Fixed by #12

Comments

@Kreozot
Copy link
Contributor

Kreozot commented Mar 23, 2024

The current sorting algorithm doesn't always work correctly — it depends on the initial array order. Sometimes it completely misplaces items.

To achieve the correct sorting of a linked list structure using only a comparison function within the constraints of GDScript's sorting mechanism is not straightforward because the sorting mechanism relies on comparing two elements at a time in isolation. However, the sorting of a linked list structure inherently depends on the global order of elements, not just on pairwise comparisons.

I will prepare a PR to fix this. Thank you for your work!

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