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

Channels should be in alphabetical order #28

Open
md-5 opened this issue Jul 26, 2013 · 12 comments
Open

Channels should be in alphabetical order #28

md-5 opened this issue Jul 26, 2013 · 12 comments

Comments

@md-5
Copy link
Contributor

md-5 commented Jul 26, 2013

No description provided.

@mrflea
Copy link
Contributor

mrflea commented Jul 28, 2013

Assuming you mean the output of /list, channels are listed in the order that the IRCd provides them to Iris. If you want some sort of ordering, get your ircd to do it.

@md-5
Copy link
Contributor Author

md-5 commented Jul 28, 2013

I mean the channel switching tabs at the top.

@SoniEx2
Copy link

SoniEx2 commented Dec 7, 2014

What if you had like #c1 #c2 #c3 #c10 #c20 ? How would you order that? User-order would be much nicer, IMO.

@md-5
Copy link
Contributor Author

md-5 commented Dec 7, 2014

@SoniEx2
Copy link

SoniEx2 commented Dec 7, 2014

@megawac
Copy link

megawac commented Dec 7, 2014

You'd want a natural compare function here. pleanty exist

@SoniEx2
Copy link

SoniEx2 commented Dec 7, 2014

You'd have to handle numbers, unicode, dates, and idk what else you can stick on channel names. Are you sure you want to do that?

@megawac
Copy link

megawac commented Dec 7, 2014

https://www.npmjs.org/package/natural-compare handles all of that (besides dates why would a channel name be a date?)

@SoniEx2
Copy link

SoniEx2 commented Dec 7, 2014

"Works well with dates in ISO format" what about the hundreds of other date formats currently in use? Timestamps? (AM/PM vs 24h)

@md-5
Copy link
Contributor Author

md-5 commented Dec 7, 2014

@SoniEx2 There is a difference between "good enough" and "handles every edge case ever", in this case a simple alphabetical sort is "good enough". I don't care if its #c1 #c2 #c3 #c10 #c20 or #c1 #c10 #c2 #c20 #c3, either is better than #c3 #c10 #c20 #c2 #c1 or whatever undefined order may arise.

@grawity
Copy link

grawity commented Dec 7, 2014

@SoniEx2 it's impossible to handle them all in any other place (think m/d/y and d/m/y in the same list), and who the hell puts dates in channel names anyway? so don't care about handling them all here, let's say it's just a bonus that the standard international date format sorts well.

@SoniEx2
Copy link

SoniEx2 commented Dec 7, 2014

Well then at least make it configurable between user order (user can rearrange tabs) and ASCIIbetical/alphabetical/whatever order (default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants