LearnNewsExamplesServices
Frontmatter
id8240
title[Neural Link] Implement toJSON in collection.Sorter
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 31, 2025, 4:50 PM
updatedAtDec 31, 2025, 4:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/8240
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 4:58 PM

[Neural Link] Implement toJSON in collection.Sorter

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 31, 2025, 4:50 PM

Implement the toJSON method in src/collection/Sorter.mjs to support the Neural Link serialization protocol.

It should wrap the existing export() method or return a similar object:

  • direction
  • property
tobiu added the enhancement label on Dec 31, 2025, 4:50 PM
tobiu added the ai label on Dec 31, 2025, 4:50 PM
tobiu added parent issue #8200 on Dec 31, 2025, 4:50 PM
tobiu referenced in commit e34a2ad - "feat(collection): Implement toJSON in Collection, Filter, and Sorter for Neural Link (#8238, #8239, #8240)" on Dec 31, 2025, 4:56 PM
tobiu assigned to @tobiu on Dec 31, 2025, 4:57 PM
tobiu
tobiu Dec 31, 2025, 4:57 PM

Input from Gemini:

✦ I have implemented the toJSON method in src/collection/Sorter.mjs. It returns:

{
    ...super.toJSON(),
    direction: this.direction,
    property : this.property
}

This includes the full reactive state, independent of the export() method.

tobiu closed this issue on Dec 31, 2025, 4:58 PM
tobiu referenced in commit ad471ec - "docs(issue): Close tickets #8238, #8239, #8240" on Dec 31, 2025, 4:59 PM