diff --git a/.vscodeignore b/.vscodeignore index 7431b1a..7024b64 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -3,7 +3,6 @@ .gitignore **/tsconfig.json **/.eslintrc.json -**/*.map .github/ tmp/ src/ diff --git a/src/editorTable/editorData.ts b/src/editorTable/editorData.ts index 579bc7b..fcbebf2 100644 --- a/src/editorTable/editorData.ts +++ b/src/editorTable/editorData.ts @@ -59,7 +59,7 @@ interface KVShape { function fromKV(kvMap: Record): KV { let result: Record = {}; // 按照 sort 字段的值排序,然后将重新组成 { K: V.value } 的形式 - let kvList = Object.values(kvMap).sort((a, b) => Number(a.sort - b.sort)); + let kvList = Object.values(kvMap).sort((a, b) => Number(a.sort) - Number(b.sort)); for (let kv of kvList) { result[kv.key] = kv.value; }