News for hackers. Stuff that matters.
Re:Advanced Javascript tips and tricks by gmurphy on Tuesday July 05, 2011 @08:46PM (#2732146)
The European Browser Choice screen was a good example of where this style of sorting can come and bite you - the browser choice screen was designed to display a selection of browsers in random order, but the above sorting code unintentionally biased it towards particular browsers.

Here's a good writeup with a bunch of test runs and graphs: http://www.robweir.com/blog/2010/02/microsoft-random-browser...

There are no comments on this comment yet.