Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort channel list #8

Merged
merged 2 commits into from
Aug 12, 2018
Merged

sort channel list #8

merged 2 commits into from
Aug 12, 2018

Conversation

cinnamon-bun
Copy link
Member

Sort the channel list alphabetically.

It probably should sort based on lowercased strings so that case doesn't matter, but this is a start.

index.js Outdated
cb(null, Object.keys(channels))
var sortedChannels = Object.keys(channels)
sortedChannels.sort()
cb(null, sortedChannels)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just cb(null, Object.keys(channels).sort())?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's better, yeah. Updated the PR.

@cblgh cblgh merged commit 1cdcdb8 into cabal-club:master Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants