Merge pull request #2199 from iminoso/timestamp
Sort Tags By most recent, show only top 5
This commit is contained in:
commit
a598b43170
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue