- Notifications
You must be signed in to change notification settings - Fork42
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix: sorting match positions ascending by force to avoid disorder#178
Conversation
So I assume this comes from multiple calls to I am meticulous with the performance of this code since I know this function is a hot spot. So, the usage of If my guess about the source of the problem is correct it should work, pushing the result to a local and then finish of with |
@dajva You are definitely right about that ! Due to multiple calls of |
a8ee75b
toc4dfd94
CompareIt all looks fine now |
c4dfd94
to61bd8a8
CompareSquash into one commit already, thanks for your review. |
Thanks a lot for the patch. Merged |
Sometimes, the variable rg-match-positions returns results in an unordered manner. Using nreverse alone is insufficient, so sorting in ascending order is applied explicitly.