Fix #15: Changed Builds to sort by major versions, then time ascending #18

Open
Kevin C. Burke wants to merge 1 commits from KevinCBurke/blender-buildbot-www:main into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit f55c1f5456 - Show all commits

View File

@ -79,10 +79,10 @@ class BuildsRenderer {
return 1; return 1;
} }
// Then sort by time descending. // Then sort by time ascending.
if ($a->file_mtime > $b->file_mtime) { if ($a->file_mtime < $b->file_mtime) {
return -1; return -1;
} else if ($a->file_mtime < $b->file_mtime) { } else if ($a->file_mtime > $b->file_mtime) {
return 1; return 1;
} }