From c21194138927da0a53c47ed592cc5b3e6454c16d Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 2 Aug 2018 10:04:54 +0100 Subject: [PATCH] fix: removes extra sort added to ensure go compatibility Previously we had to do the extra sort due to ipfs/go-ipfs#5181 Now that's been resolved & released we can remove it, yay! License: MIT Signed-off-by: achingbrain --- src/core/ls.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/core/ls.js b/src/core/ls.js index 9d4f103..454994e 100644 --- a/src/core/ls.js +++ b/src/core/ls.js @@ -77,18 +77,7 @@ module.exports = (ipfs) => { } return file - })), - - // https://github.com/ipfs/go-ipfs/issues/5181 - (files, cb) => { - if (options.long) { - return cb(null, files.sort((a, b) => { - return b.name.localeCompare(a.name) - })) - } - - cb(null, files) - } + })) ], callback) } }