impress/app
Emi Matchu 0e57a76ce6 Fix NC style series sort order in search dropdown
Oops, I didn't realize that the MySQL function `SUBSTRING_INDEX` always
returns the full string if the split delimiter isn't found.

This meant that, for series names like "Regal", we read the main name as
"Regal" (correct) and the variant name as "Regal" (incorrect).

This caused sort order to be incorrect for some series, e.g.,
- Prismatic Dawn: Regal
- Prismatic Dusk: Regal
- Prismatic Mirage: Regal
- Regal

whereas the main series name is meant to be first, and *does* come first
in cases like "Festive" where the main name sorts before any of the
variant names!

In this change, we update the variant name definition to return an empty
string. That way, when there's no variant name and it's just the main
series, that one sorts to the top of the series variants.
2025-06-22 12:37:28 -07:00
..
assets Disallow email addresses in Neopets usernames 2025-06-22 11:16:26 -07:00
controllers Hide shadowbanned users from trade lists for most viewers 2025-06-22 11:35:27 -07:00
helpers Hide duplicate timestamps on item trades page 2025-06-22 10:43:48 -07:00
javascript Remove Sentry from wardrobe JS 2025-04-27 12:02:20 -07:00
mailers/fundraising
models Fix NC style series sort order in search dropdown 2025-06-22 12:37:28 -07:00
services Fix NC Mall Styling Studio import 2025-06-22 12:24:27 -07:00
views Hide shadowbanned users from trade lists for most viewers 2025-06-22 11:35:27 -07:00