Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -22,7 +22,7 @@ const totalPages = ref(0); | @@ -22,7 +22,7 @@ const totalPages = ref(0); | ||
| 22 | 22 | ||
| 23 | //#region --Computed--. | 23 | //#region --Computed--. | 
| 24 | const movies = computed(() => { | 24 | const movies = computed(() => { | 
| 25 | - return useRepo(Movie).all() as unknown as MovieInterface[]; | 25 | + return useRepo(Movie).query().orderBy("popularity", 'desc').get() as unknown as MovieInterface[]; | 
| 26 | }); | 26 | }); | 
| 27 | //#endregion | 27 | //#endregion | 
| 28 | 28 | 
- 
Please register or login to post a comment