Status: Unconfirmed Owner: ---- Labels: Type-Bug Pri-2 OS-All Area-Misc New issue 16971 by [email protected]: Chrome 3.x, js-generated tables are sorted incorrectly http://code.google.com/p/chromium/issues/detail?id=16971
Chrome Version : Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US) AppleWebKit/531.5 (KHTML, like Gecko) Chrome/3.0.194.0 Safari/531.5 URLs (if applicable) : http://db.mmo-champion.com/items/ Other browsers tested: Safari 4: OK Firefox 3.x: OK IE 7: OK IE 8: OK What steps will reproduce the problem? 1. Go to http://db.mmo-champion.com/items/ 2. Stay there What is the expected result? The table should be sorted in the same order as the elements. What happens instead? Chrome sorts the table by key. The table is generated from embedded js dicts. Snippet: var search_results = { 44807: { ... }, 44101: { ... }, } In every other browser, the table is sorted in the array's order; 44807 first, 44101 after. Chrome sorts it by id, 44101 would come first then. I'm not sure if this is a chrome bug, or a bug in every other browser. Leaving this up for debate. As a sidenote, Chrome 2.x sorts differently .. I couldn't figure out how exactly, and since I don't have it its a bit hard to test. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
