Site > Order files and versions

This commit is contained in:
brunosimon
2017-08-12 12:45:34 +02:00
parent acc8172ff0
commit efe1ab327b
4 changed files with 31 additions and 2 deletions
@@ -22,6 +22,19 @@ export default
}
},
computed:
{
files()
{
const files = this.content.files.sort((fileA, fileB) =>
{
return fileA.name < fileB.name ? -1 : 1
})
return files
}
},
created()
{
},
@@ -4,6 +4,6 @@
</a>
<div v-show="open">
<files-tree-folder v-for="folder of content.folders" :key="folder.name" :content="folder" :depth="depth + 1"></files-tree-folder>
<files-tree-file v-for="file of content.files" :key="file.data.path.full" :content="file" :depth="depth + 1"></files-tree-file>
<files-tree-file v-for="file of files" :key="file.data.path.full" :content="file" :depth="depth + 1"></files-tree-file>
</div>
</div>