Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: removes extra sort added to ensure go compatibility
Browse files Browse the repository at this point in the history
Previously we had to do the extra sort due to ipfs/kubo#5181

Now that's been resolved & released we can remove it, yay!

License: MIT
Signed-off-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
achingbrain committed Aug 2, 2018
1 parent 158bb28 commit c211941
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 c211941

Please sign in to comment.