diff options
author | Minteck <contact@minteck.org> | 2022-02-12 22:05:23 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-02-12 22:05:23 +0100 |
commit | 005261f22f163d13c44b8b41935da5a1231a4626 (patch) | |
tree | 75506966d644241cbd449d4f9d9fd5971a7b3c68 /commands/list.js | |
parent | af144579a7e52e55643dde00ecf2fe2f6c0d6620 (diff) | |
download | twilight-005261f22f163d13c44b8b41935da5a1231a4626.tar.gz twilight-005261f22f163d13c44b8b41935da5a1231a4626.tar.bz2 twilight-005261f22f163d13c44b8b41935da5a1231a4626.zip |
Update
Diffstat (limited to 'commands/list.js')
-rw-r--r-- | commands/list.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/list.js b/commands/list.js index 9dc0020..b0f9e5e 100644 --- a/commands/list.js +++ b/commands/list.js @@ -1,5 +1,5 @@ module.exports = async () => { - let packages = JSON.parse(fs.readFileSync(home + "/repository/list.json").toString()); + let packages = JSON.parse(fs.readFileSync(home + "/repository/list.json").toString()).sort(); let installed = JSON.parse(fs.readFileSync(home + "/installed.json").toString()).map(i => i.id); let installs = JSON.parse(fs.readFileSync(home + "/installed.json").toString()); |