Add sort by size and name (closes #4) #6

Manually merged
github merged 1 commit from gh-pr/6/head into gh-pr/6/base 2026-11-27 02:30:46 +00:00
Owner

@⁠Ahmet-Dedeler on GitHub · 2026-11-20 22:01 UTC · original
Ahmet-Dedeler:feat/sort-results → main · +84 −11 · 2 files · 1 commits · merged 2026-11-21 07:53 UTC

Adds the sort from #4.

A Sort dropdown sits next to the results count in Explorer and next to the LOD toggle in Model Viewer. Both lists share it.

  • Relevance: same as before (scan order, best name match first while searching)
  • Size: largest first / smallest first: uses the size already shown on each row
  • Name (A-Z)

Sorts are stable, so ties keep scan order. Model Viewer rows now show the size too, so the order is visible there.

Only touches src/main.rs. Builds clean, all tests pass.

I know the license says PRs are invite only, so feel free to close this if you'd rather do it yourself. Figured it was easier to show than describe.

Closes #4

🤖 Generated with Claude Code

**@⁠Ahmet-Dedeler** on GitHub · 2026-11-20 22:01 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/6) `Ahmet-Dedeler:feat/sort-results` → `main` · +84 −11 · 2 files · 1 commits · merged 2026-11-21 07:53 UTC Adds the sort from #4. A **Sort** dropdown sits next to the results count in Explorer and next to the LOD toggle in Model Viewer. Both lists share it. - **Relevance**: same as before (scan order, best name match first while searching) - **Size: largest first / smallest first**: uses the size already shown on each row - **Name (A-Z)** Sorts are stable, so ties keep scan order. Model Viewer rows now show the size too, so the order is visible there. Only touches `src/main.rs`. Builds clean, all tests pass. I know the license says PRs are invite only, so feel free to close this if you'd rather do it yourself. Figured it was easier to show than describe. Closes #4 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Adds a Sort dropdown (Relevance, Size largest/smallest first, Name A-Z)
next to the results count in Explorer and the LOD toggle in Model Viewer.
Both lists share the setting. Relevance keeps the old behaviour (scan
order, best name match first while searching). Size sorts use the same
size shown in each row; sorts are stable so ties keep scan order.
Model Viewer rows now show the entry size too.

Closes #4

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:30:44 +00:00
github manually merged commit e57347675a into gh-pr/6/base 2026-11-27 02:30:46 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-20 22:01 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-20 22:01 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/6#pullrequestreview-5999971704) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-21 08:03 UTC · original

Merged and shipped in v1.3.1! Clean work on the shared SortMode dropdown for Explorer and Model Viewer — thank you @⁠Ahmet-Dedeler.

**@⁠rpatty-dev** on GitHub · 2026-11-21 08:03 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/6#issuecomment-7059654041) Merged and shipped in [v1.3.1](https://github.com/rpatty-dev/PercyStar/releases/tag/v1.3.1)! Clean work on the shared SortMode dropdown for Explorer and Model Viewer — thank you @⁠Ahmet-Dedeler.
This discussion has been locked. Commenting is limited to contributors.
No description provided.