-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
[Tags] Incorrect sub-tags ordering in Chrome #325
Comments
From @tarunmarkose on August 27, 2015 8:26 Hey, @tobscure if you are not fixing this before the beta release, I and my colleague @ishanAhuja could try and take care of it. Let me know. |
Go for it! Relevant file is js/lib/utils/sortTags in the flarum/tags repo. |
I'm unable to reproduce this issue. Has it been fixed? |
No, I can still reproduce in Chrome 44. |
@tobscure Seems like something fixed the issue.. if you can still reproduce the error, please outline here.. |
I am on Chrome 44.0.2403.157. |
And seems to be fixed for me now too! That's weird, but sure, I'll take it :) |
I think there might be more to the issue – like the number of other tags are present. We need to come up with a solid reproduction method. |
True dat, @maxyc's issue seems like the same problem. @maxyc Is there anything you can add to this thread to help us reproduce the error? |
@maxyc An export of your tags table, taken when the problem occurs would also be helpful. |
error here http://novour.ru/t/Hobby |
http://novour.ru/sxd/backup/maxyc_novour_2015-08-31_10-46-44.sql.gz db table without users table |
Thank you! I was able to recreate the issue. Will report back soon. -Tarun On Mon, Aug 31, 2015 at 1:17 PM, Максим [email protected] wrote:
|
Since I added a new sub-tag, this can now be reliably reproduced on discuss.flarum.org now. |
It seems that |
It's due to a flaw in our sorting algorithm, so it ends up relying on the browser's sorting algorithm which varies between browsers. We need to fix our sorting algorithm. |
I see. I'll take a stab at redoing the sortTags function. |
The algorithm should basically result in this:
So given the tags:
We should end up with:
The current implementation of the algorithm is almost there, there's just something slightly wrong with it. |
Thanks Toby, I'll get on it.
|
I've been pretty caught up at work, with a new release coming up for our product. If anyone else is willing to take a shot at this and contribute a fix, please go right ahead.
|
From @tobscure on August 28, 2015 2:56
From @tarunmarkose on August 20, 2015 7:37
The "Installation" subtag of "Support" on the demo site opens wrongly under "Dev". This happens for me while using Chrome. Firefox and Safari, are fine.
Copied from original issue: #239
Copied from original issue: flarum/tags#17
The text was updated successfully, but these errors were encountered: