sort Unknown appearances to the bottom of support
This commit is contained in:
parent
d41f80518a
commit
5f3b627187
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ const buildPetStatesForPetTypeLoader = (db, loaders) =>
|
||||||
const [rows, _] = await db.execute(
|
const [rows, _] = await db.execute(
|
||||||
`SELECT * FROM pet_states
|
`SELECT * FROM pet_states
|
||||||
WHERE pet_type_id IN (${qs})
|
WHERE pet_type_id IN (${qs})
|
||||||
ORDER BY mood_id ASC, female DESC, id DESC`,
|
ORDER BY (mood_id IS NULL) ASC, mood_id ASC, female DESC, id DESC`,
|
||||||
petTypeIds
|
petTypeIds
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue