Merge pull request #2199 from iminoso/timestamp

Sort Tags By most recent, show only top 5
This commit is contained in:
Ian Minoso 2016-12-05 12:56:38 -05:00 committed by GitHub
commit a598b43170

View file

@ -42,10 +42,10 @@ class repoSidebar extends React.Component<ISidebar, {}> {
}
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(
<tr>
<td>