Skip to content

Commit

Permalink
🐛 修复列表名称排序错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Dec 14, 2022
1 parent 0ec4cc6 commit 8e678da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/options/routes/ScriptList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function ScriptList() {
{
title: "名称",
dataIndex: "name",
sorter: (a, b) => a.name.length - b.name.length,
sorter: (a, b) => a.name.localeCompare(b.name),
filterIcon: <IconSearch />,
key: "name",
// eslint-disable-next-line react/no-unstable-nested-components
Expand Down
2 changes: 1 addition & 1 deletion src/pages/options/routes/SubscribeList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function SubscribeList() {
{
title: "名称",
dataIndex: "name",
sorter: (a, b) => a.name.length - b.name.length,
sorter: (a, b) => a.name.localeCompare(b.name),
filterIcon: <IconSearch />,
key: "name",
// eslint-disable-next-line react/no-unstable-nested-components
Expand Down

0 comments on commit 8e678da

Please sign in to comment.