Skip to content

Commit

Permalink
🐛 Trie les séries par date de création décroissante
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand committed May 25, 2020
1 parent b8cf2c0 commit eface90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
const [prev, next] = await $content('shows')
.only(['title', 'slug'])
.sortBy('date', 'desc')
.sortBy('creation', 'desc')
.surround(params.slug)
.fetch()
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
const q = route.query.q
let query = $content('shows')
.sortBy('date', 'desc')
.sortBy('creation', 'desc')
if (q) {
query = query.search('title', q)
Expand Down

0 comments on commit eface90

Please sign in to comment.