1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #1616 from pfftdammitchris/master

Sort tags alphabetically
This commit is contained in:
Junyoung Choi (Sai)
2018-03-09 21:33:38 +09:00
committed by GitHub

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 (