1
0
mirror of https://github.com/flarum/core.git synced 2025-08-14 20:34:10 +02:00

Sort child tags in tiles

This commit is contained in:
Toby Zerner
2016-01-06 09:04:04 +10:30
parent 169222aa04
commit 46c1dbfb2a

View File

@@ -33,7 +33,7 @@ export default class TagsPage extends Component {
<ul className="TagTiles"> <ul className="TagTiles">
{pinned.map(tag => { {pinned.map(tag => {
const lastDiscussion = tag.lastDiscussion(); const lastDiscussion = tag.lastDiscussion();
const children = app.store.all('tags').filter(child => child.parent() === tag); const children = sortTags(app.store.all('tags').filter(child => child.parent() === tag));
return ( return (
<li className={'TagTile ' + (tag.color() ? 'colored' : '')} <li className={'TagTile ' + (tag.color() ? 'colored' : '')}