diff --git a/src/GitList/Controller/CommitController.php b/src/GitList/Controller/CommitController.php index b6be3be..de0a0ca 100644 --- a/src/GitList/Controller/CommitController.php +++ b/src/GitList/Controller/CommitController.php @@ -44,6 +44,8 @@ class CommitController implements ControllerProviderInterface $categorized[$date][] = $commit; } + krsort($categorized); + $template = $app['request']->isXmlHttpRequest() ? 'commits_list.twig' : 'commits.twig'; return $app['twig']->render($template, array( @@ -74,6 +76,8 @@ class CommitController implements ControllerProviderInterface $categorized[$date][] = $commit; } + krsort($categorized); + return $app['twig']->render('searchcommits.twig', array( 'repo' => $repo, 'branch' => $branch,