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

Commit

Permalink
Merge pull request #6 from ipfs/remove-extra-ls-long-sort
Browse files Browse the repository at this point in the history
fix: removes extra sort added to ensure go compatibility
  • Loading branch information
achingbrain authored Aug 2, 2018
2 parents 158bb28 + c211941 commit 03b6399
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/core/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 03b6399

Please sign in to comment.