Skip to content

Conversation

@MilanKomsa
Copy link
Contributor

No description provided.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.


// Group private triples by subject and flatten
const privateTriplesGrouped = kcTools.groupNquadsBySubject(dataset.private, true);
const privateTriplesGrouped = kcTools.groupNquadsBySubject(dataset.private, false).sort();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Array Sorting Fails Without Comparator

The .sort() method called on an array of arrays without a comparator function will convert each array element to a string and sort based on string comparison, rather than comparing the arrays' contents properly. This produces unpredictable ordering for the grouped private triples. Either provide a custom comparator function or reconsider the sorting approach to match the intended behavior change described in the PR title "Changed sort method for private".

Fix in Cursor Fix in Web

@Mihajlo-Pavlovic Mihajlo-Pavlovic merged commit 7b1f0ab into v8/develop Oct 31, 2025
1 check passed
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 this pull request may close these issues.

3 participants