diff --git a/package-lock.json b/package-lock.json index dd0222e..9364ef0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "react-dom": "18.2.0", "react-hot-keys": "^2.7.2", "react-swipeable": "^7.0.0", + "string-natural-compare": "^3.0.1", "throttle-debounce": "^5.0.0", "tippy.js": "^6.3.7", "turndown": "^7.1.1", @@ -39,6 +40,7 @@ "@types/nodemailer": "^6.4.5", "@types/react": "18.0.17", "@types/react-dom": "^18.0.6", + "@types/string-natural-compare": "^3.0.2", "@types/throttle-debounce": "^5.0.0", "@types/turndown": "^5.0.1", "@typescript-eslint/eslint-plugin": "^5.35.1", @@ -2660,6 +2662,12 @@ "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", "dev": true }, + "node_modules/@types/string-natural-compare": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/string-natural-compare/-/string-natural-compare-3.0.2.tgz", + "integrity": "sha512-teA6gjoKrX+eeweVnk3bbQsbKUQyrP6CDJGsu0x33U4wyq2aF4y6CwPC/ygnLL0rf8twMXRmLdXo7DVhp1XBBw==", + "dev": true + }, "node_modules/@types/throttle-debounce": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/throttle-debounce/-/throttle-debounce-5.0.0.tgz", @@ -8160,6 +8168,11 @@ "integrity": "sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==", "dev": true }, + "node_modules/string-natural-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", + "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -11115,6 +11128,12 @@ "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", "dev": true }, + "@types/string-natural-compare": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/string-natural-compare/-/string-natural-compare-3.0.2.tgz", + "integrity": "sha512-teA6gjoKrX+eeweVnk3bbQsbKUQyrP6CDJGsu0x33U4wyq2aF4y6CwPC/ygnLL0rf8twMXRmLdXo7DVhp1XBBw==", + "dev": true + }, "@types/throttle-debounce": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/throttle-debounce/-/throttle-debounce-5.0.0.tgz", @@ -15107,6 +15126,11 @@ "integrity": "sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==", "dev": true }, + "string-natural-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", + "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" + }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", diff --git a/package.json b/package.json index 07a0d13..6dac116 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "react-dom": "18.2.0", "react-hot-keys": "^2.7.2", "react-swipeable": "^7.0.0", + "string-natural-compare": "^3.0.1", "throttle-debounce": "^5.0.0", "tippy.js": "^6.3.7", "turndown": "^7.1.1", @@ -50,6 +51,7 @@ "@types/nodemailer": "^6.4.5", "@types/react": "18.0.17", "@types/react-dom": "^18.0.6", + "@types/string-natural-compare": "^3.0.2", "@types/throttle-debounce": "^5.0.0", "@types/turndown": "^5.0.1", "@typescript-eslint/eslint-plugin": "^5.35.1", diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index c1d927e..00a947d 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -382,13 +382,19 @@ export const AppLayout = ({