Leaks Viewer shows recent builds in a strange order
Created attachment 85735 [details] Patch
Comment on attachment 85735 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=85735&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:80 > + if (a.revision < b.revision) > + return 1; > + if (b.revision < a.revision) > + return -1; > + return 0; How about: return a.revision - b.revision;
> > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:80 > > + if (a.revision < b.revision) > > + return 1; > > + if (b.revision < a.revision) > > + return -1; > > + return 0; > > How about: return a.revision - b.revision; Re-reading that I think I have a and b reversed.
Darin and I independently came up with the same suggestion. I've fixed it. Thanks!
Committed r81075: <http://trac.webkit.org/changeset/81075>