mirror of
https://github.com/draussenfunker/draussenfunker.github.io.git
synced 2025-12-31 08:29:17 +00:00
[FEATURE] Adjust sorting of activities
This commit is contained in:
parent
c302548053
commit
60ff2ae140
1 changed files with 2 additions and 2 deletions
|
|
@ -30,9 +30,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const pages = props.type ?
|
const pages = (props.type ?
|
||||||
usePages().filter(page => page.frontmatter.type === props.type) :
|
usePages().filter(page => page.frontmatter.type === props.type) :
|
||||||
usePages();
|
usePages()).sort((a, b) => (b.path > a.path) ? 1 : -1);
|
||||||
console.log(pages);
|
console.log(pages);
|
||||||
return {pages}
|
return {pages}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue