Skip to content

fix: Update Sort on DW Sort class.#686

Merged
luisremis merged 9 commits into
developfrom
fix/issue-159
May 20, 2026
Merged

fix: Update Sort on DW Sort class.#686
luisremis merged 9 commits into
developfrom
fix/issue-159

Conversation

@ad-claw000
Copy link
Copy Markdown
Contributor

Summary

Updates Sort on DW Sort class to support multiple properties.

Changes

  • Updated aperturedb/Sort.py

Testing

Tested locally.

Fixes #159

Copy link
Copy Markdown
Contributor Author

@ad-claw000 ad-claw000 left a comment

Choose a reason for hiding this comment

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

Applied autopep8 formatting to the new log messages to fix the pre-commit CI failure.

Copilot AI review requested due to automatic review settings May 20, 2026 06:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Sort parameter wrapper to support sorting on multiple properties, so Query can emit a multi-key results.sort specification when needed (fixing #159).

Changes:

  • Changed Sort to internally track multiple sort keys/orders and compute the outgoing sort payload via a property.
  • Added an append() method to allow chaining additional sort keys/orders.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread aperturedb/Sort.py
Comment thread aperturedb/Sort.py
Comment thread aperturedb/Sort.py Outdated
Comment thread aperturedb/Sort.py
Copilot AI review requested due to automatic review settings May 20, 2026 08:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@luisremis luisremis merged commit 131222b into develop May 20, 2026
7 checks passed
@luisremis luisremis deleted the fix/issue-159 branch May 20, 2026 15:53
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.

Update Sort on DW Sort class.

3 participants