diff --git a/static/js/directives/components/pages/repo-page/sidebar.tsx b/static/js/directives/components/pages/repo-page/sidebar.tsx index ed8a716eb..743c306f3 100644 --- a/static/js/directives/components/pages/repo-page/sidebar.tsx +++ b/static/js/directives/components/pages/repo-page/sidebar.tsx @@ -42,10 +42,10 @@ class repoSidebar extends React.Component { } sortedTags = sortedTags.sort(function(a, b) { - return a.lastModified - b.lastModified; + return b.lastModified - a.lastModified; }); - sortedTags.forEach(function(el, i){ + sortedTags.slice(0,5).forEach(function(el, i){ tagRows.push(