diff --git a/source/BuildsRenderer.php b/source/BuildsRenderer.php index 7aa7a80..298add0 100644 --- a/source/BuildsRenderer.php +++ b/source/BuildsRenderer.php @@ -79,10 +79,10 @@ class BuildsRenderer { return 1; } - // Then sort by time descending. - if ($a->file_mtime > $b->file_mtime) { + // Then sort by time ascending. + if ($a->file_mtime < $b->file_mtime) { return -1; - } else if ($a->file_mtime < $b->file_mtime) { + } else if ($a->file_mtime > $b->file_mtime) { return 1; }