Reverse news order (newest top)

This commit is contained in:
Ilya Ig. Petrov 2018-04-06 11:29:57 +05:00
parent b866245ed0
commit ea7914e115

View File

@ -47,7 +47,10 @@ export default function getApp(theState) {
this.setStatusTo(
<ol style="list-style-type: initial;">
{newsArr.map(([title, url]) => (<li><a href={url}>{title}</a></li>))}
{newsArr
.map(([title, url]) => (<li><a href={url}>{title}</a></li>))
.reverse() // News order.
}
</ol>
);