Skip to content

Feature: Advanced Sorting

This MR adds advanced sorting functionality to SPNatI.

As discussed on the Reddit thread with @spnati and @Arcess, this feature adds a "Sort By" option and dropdown box to the Search modal to allow the user to sort opponents.

The Sort By option has the following sorting modes:

  • "Featured" (default selection) - A manually-maintained sort order, determined by order of characters in listing.xml
  • "Newest" - Characters, reverse chronological (most recent first)
  • "Oldest" - Characters, forward chronological (earliest released first)
  • "Most Layers" - Number of Layers, descending (high to low)
  • "Fewest Layers" - Number of Layers, ascending (low to high)

It also attempts to fix the "randomness" currently involved with loading opponents on the selection screen. I have not encountered out-of-order characters during testing since writing the fix, but I could just be lucky. If characters occasionally still load out-of-order, please let me know.

Finally, a <release> tag was added to each released character's meta.xml file. Until @Zombiqaz (or someone) can update the make_xml.py script with the new fields (has_ending and layers as well), content creators will have to add it manually. The release number should probably be added only when the character is ready to be officially added to the game, to avoid ordering conflicts.

Merge request reports

Loading