1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +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 () {
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 }
})
}), ['name'])
return (
tagList.map(tag => {
return (