mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
sort by updated At
This commit is contained in:
@@ -57,6 +57,7 @@ class NoteList extends React.Component {
|
||||
let { storageMap, notes, index } = this.props
|
||||
|
||||
let notesList = notes
|
||||
.sort((a, b) => new Date(b.updatedAt) - new Date(a.updatedAt))
|
||||
.slice(0, 10 + 10 * this.state.range)
|
||||
.map((note, _index) => {
|
||||
let storage = storageMap[note.storage]
|
||||
|
||||
Reference in New Issue
Block a user