Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 03b6399

Browse files
authored
Merge pull request #6 from ipfs/remove-extra-ls-long-sort
fix: removes extra sort added to ensure go compatibility
2 parents 158bb28 + c211941 commit 03b6399

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/core/ls.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,7 @@ module.exports = (ipfs) => {
7777
}
7878

7979
return file
80-
})),
81-
82-
// https://github.com/ipfs/go-ipfs/issues/5181
83-
(files, cb) => {
84-
if (options.long) {
85-
return cb(null, files.sort((a, b) => {
86-
return b.name.localeCompare(a.name)
87-
}))
88-
}
89-
90-
cb(null, files)
91-
}
80+
}))
9281
], callback)
9382
}
9483
}

0 commit comments

Comments
 (0)