1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Sort tags alphabetically

This commit is contained in:
pfftdammitchris
2018-02-28 16:34:42 -08:00
parent 6bcb6398f8
commit 88ac6c6fc6

View File

@@ -117,9 +117,9 @@ class SideNav extends React.Component {
tagListComponent () { tagListComponent () {
const { data, location } = this.props const { data, location } = this.props
const tagList = data.tagNoteMap.map((tag, name) => { const tagList = _.sortBy(data.tagNoteMap.map((tag, name) => {
return { name, size: tag.size } return { name, size: tag.size }
}) }), ['name'])
return ( return (
tagList.map(tag => { tagList.map(tag => {
return ( return (