Summary: | Leaks Viewer shows recent builds in a strange order | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> | ||||
Component: | New Bugs | Assignee: | Adam Roben (:aroben) <aroben> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ddkilzer, joepeck | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Other | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Adam Roben (:aroben)
2011-03-14 16:02:50 PDT
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> |