mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-23 07:32:28 -04:00
Ensure stable sort when no lang is specified
This commit is contained in:
@@ -271,6 +271,8 @@ export async function getShows({
|
||||
.orderBy(
|
||||
showTranslations.pk,
|
||||
sql`array_position(${sqlarr(languages)}, ${showTranslations.language})`,
|
||||
// ensure a stable sort to prevent future pages to contains the same element again
|
||||
showTranslations.language,
|
||||
)
|
||||
.as("t");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user