Skip to content

Fix manual sorting condition#75

Open
lovewave02 wants to merge 1 commit into
tzezar:mainfrom
lovewave02:fix/manual-sorting-condition
Open

Fix manual sorting condition#75
lovewave02 wants to merge 1 commit into
tzezar:mainfrom
lovewave02:fix/manual-sorting-condition

Conversation

@lovewave02

Copy link
Copy Markdown

Fixes #62.

applySorting currently treats manual global search as manual sorting. That
means local sorting is skipped when globalSearch.isManual is enabled, even if
sorting.isManual is false.

This checks only the sorting feature's own manual flag in both sorting
implementations and keeps the CLI and official-site copies in sync. I also
added a regression test for the mixed manual-search/local-sorting case.

Verification:

  • npm run test:unit -- --run - 3 passed
  • npm run build - passed
  • svelte-check - existing baseline is 161 errors / 5 warnings; this patch has
    the same result and adds no diagnostics

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.

Check if manual sorting condition is defined correctly

1 participant