this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

alpha-sort → Intl.Collator

+3 -18
+1 -1
changelog.md
··· 9 9 10 10 ### Changed 11 11 12 - - Updated dependencies 12 + - Updated and removed dependencies 13 13 14 14 ## [5.0.0](https://github.com/patrik-csak/mac-terminal/compare/v4.0.0...v5.0.0) – 2025-09-12 15 15
+2 -3
index.js
··· 1 1 import os from 'node:os'; 2 - import alphaSort from 'alpha-sort'; 3 2 import bplist from 'bplist-parser'; 4 3 import {$} from 'execa'; 5 4 import ow from 'ow'; ··· 28 27 const terminalPlistPath = `${os.homedir()}/Library/Preferences/com.apple.Terminal.plist`; 29 28 const terminalPreferences = await bplist.parseFile(terminalPlistPath); 30 29 31 - return Object.keys(terminalPreferences[0]['Window Settings']).sort( 32 - alphaSort({caseInsensitive: true, natural: true}), 30 + return Object.keys(terminalPreferences[0]['Window Settings']).toSorted( 31 + new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'}).compare, 33 32 ); 34 33 } 35 34
-13
package-lock.json
··· 12 12 "darwin" 13 13 ], 14 14 "dependencies": { 15 - "alpha-sort": "^5.0.0", 16 15 "bplist-parser": "^0.3.2", 17 16 "execa": "^9.6.0", 18 17 "ow": "^3.0.0", ··· 1731 1730 "funding": { 1732 1731 "type": "github", 1733 1732 "url": "https://github.com/sponsors/epoberezkin" 1734 - } 1735 - }, 1736 - "node_modules/alpha-sort": { 1737 - "version": "5.0.0", 1738 - "resolved": "https://registry.npmjs.org/alpha-sort/-/alpha-sort-5.0.0.tgz", 1739 - "integrity": "sha512-ObQ58fJyEEYr7n91itdT/N4LYmg6H/HehNHIvsTL9byMLYf3acJaLpvc+/KnvNDQVX5LmACETJAtWLXA9GUTmw==", 1740 - "license": "MIT", 1741 - "engines": { 1742 - "node": ">=12" 1743 - }, 1744 - "funding": { 1745 - "url": "https://github.com/sponsors/sindresorhus" 1746 1733 } 1747 1734 }, 1748 1735 "node_modules/ansi-escapes": {
-1
package.json
··· 27 27 "unused:check": "knip" 28 28 }, 29 29 "dependencies": { 30 - "alpha-sort": "^5.0.0", 31 30 "bplist-parser": "^0.3.2", 32 31 "execa": "^9.6.0", 33 32 "ow": "^3.0.0",