Skip to content

Commit 15eaf86

Browse files
committed
agrega: uso del metodo sort para ordenar la lista de apuntes alfabeticamente
1 parent 16b35d1 commit 15eaf86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

generarListaDeApuntes.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fs.readdir(RELATIVE_PATH_OF_NOTES_FOLDER, (err, listOfNoteFiles) => {
1515

1616
const notes = []
1717

18+
listOfNoteFiles.sort()
1819
listOfNoteFiles.forEach((nameOfNoteFile, index) => {
1920
const RELATIVE_PATH_OF_NOTE_FILE = `${RELATIVE_PATH_OF_NOTES_FOLDER}${nameOfNoteFile}`;
2021

0 commit comments

Comments
 (0)