mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Sort tags alphabetically
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user