Skip to content

Commit

Permalink
fix: not properly sort column filter
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jul 28, 2024
1 parent d72b787 commit 8ae713b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/gui/table-result/filter-column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export default function useTableResultColumnFilter({
const tmpSet = new Set(columnIndexList);
tmpSet.add(idx);
const tmpArray = Array.from(tmpSet);
setColumnIndexList(tmpArray.sort());
tmpArray.sort((a, b) => a - b);
setColumnIndexList(tmpArray);
}
}}
>
Expand Down

0 comments on commit 8ae713b

Please sign in to comment.