Skip to content

Add column sorting functionality#35

Merged
robince merged 3 commits into
mainfrom
codex/add-column-sort
Mar 27, 2026
Merged

Add column sorting functionality#35
robince merged 3 commits into
mainfrom
codex/add-column-sort

Conversation

@robince
Copy link
Copy Markdown
Owner

@robince robince commented Mar 27, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 27, 2026 08:35
@robince
Copy link
Copy Markdown
Owner Author

robince commented Mar 27, 2026

@codex review

Copy link
Copy Markdown

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 adds column sorting to the table view, wiring UI sort interactions through to the DuckDB-backed engine so that previews, row jumps, and missing-value navigation all respect the active sort order.

Changes:

  • Add a sort stack to the UI model with < / > keybindings, header markers, and a footer sort summary.
  • Extend engine query APIs to accept optional stacked sort terms and apply them consistently for preview + offset/rowID lookups + null navigation.
  • Update/expand unit tests across UI and engine to cover sorting behavior and sorted-order jumps.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/ui/model.go Adds sort state, rendering markers/summary, key handling, and passes sort terms into engine calls.
internal/ui/model_test.go Adds UI coverage for sort stacking/reset and sorted-order jump/null navigation; updates related expectations.
internal/engine/engine.go Introduces SortTerm/SortDirection and threads sorting into preview + lookup/null-query paths.
internal/engine/engine_test.go Adds engine tests for sorted preview, null ordering, and sorted offset/rowID lookups.
internal/engine/test_helpers_test.go Updates mustPreview helper to accept optional sort terms.

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

Comment thread internal/engine/engine.go Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a8f32eab4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/engine/engine.go Outdated
@robince robince merged commit 9ff10f2 into main Mar 27, 2026
3 checks 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.

2 participants