XCOM 2
127 ratings
[WOTC] DSL Redux Sort Options Plugin
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
718.558 KB
2 Sep, 2022 @ 12:12pm
29 Jun @ 8:20am
15 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] DSL Redux Sort Options Plugin

Description
What is this?
This mod changes how UIPersonnel screens sort thier data by using a UISL override.
They will now use an entire new Insert Sort method instead of a Bubble Sort method.
Should work on all UIPersonnel screens.

I made this mod JUST so my main Detailed Soldier List Redux doesn't end up with HARD dependencies on more mods, but now this mod no longer has those MCO's either ...

As these are 'optional' Sorting overrides, it was easier to remain as a plugin-mod.

Features
  • Changes the UIPersonnel screens to sort by a UISL.
  • Sort By Class - sorts by CHL Class Display Name instead of the Template name
  • Sort By Class - sorts by priority classes too (see config)
  • Sort By Status - sorts by status, time, shaken, availability/wounds, mental state, rank
  • Sort by Status order can be also be config adjusted
  • This means for status it has tired people above wounded (near Available)
  • Auto-sorts the List in Squad Select to 'by Status'
  • Auto-sorts the List in the Armoury to 'by Rank'
  • Auto-sorts the List in the Memorial to 'by Operation'
  • The auto-sort options are config editable
  • Added a button to sort by country
  • Added a button to change name sorting by first, nick or last
  • Added a button to filter to Promotions waiting or Bonded units only
  • Added a button for a simple screen text filtering
  • Added a button to sort by the HQ Crew order
  • Promotion and Text filtering persist across DSLR/UIPersonnel screens
  • Auto-sorts Bond mates to the top of the selection screen

Compatibility
I highly suggest the required mods to be subbed first!

Technically does not require Detailed Soldier List Redux but designed to work with it.

Has a Mod Class Override (MCO) for the UIPersonnel_LivingQuarters.
This MCO adds an extra [ALL UNITS] tab with an overview sort order to the LivingQuarters.
It can be commented out if it conflicts with stuff in the future.

Credits
Some code based on Sort By Status Days by michiakig
Many thanks to Iridar for discussions around MCO parent-child priorities (which are no longer required)

As always an appreciation to the XCOM2 and MEME Modding discords for support :)

~ Enjoy !! and please buy me a Cuppa Tea[www.buymeacoffee.com]
86 Comments
Deacon Ivory 30 Jun @ 7:55am 
Thank you for the update Rusty!
lety4ayavoropaeva 3 May @ 3:11am 
>> I highly suggest the required mods to be subbed first!

do you mean this kind of config edit?

[WOTC_DSL_Rusty_Sort CHDLCRunOrder]
+RunAfter=X2WOTCCommunityHighlander
+RunAfter=WOTC_DSL_Rusty
RustyDios  [author] 31 Oct, 2024 @ 3:50pm 
no
Warrior250 31 Oct, 2024 @ 3:43pm 
Any way to set it to HQ Order automatically?
ThiagoCururu 10 Jun, 2024 @ 6:30pm 
How can I modify the settings to make it sort by: Status then sub sort by Rank, and finally separate those by Class? Playing with over 60 soldiers gets too messy sometimes.

I tried some changes but best I could do was break soldier selection to squad, including making all text disappear.

@RustyDios I'm a big fan of your mods, thank you!
Aquiles 7 Nov, 2023 @ 6:30am 
I see. Sounds fair. Thank you very much for the kind answer.
RustyDios  [author] 7 Nov, 2023 @ 6:21am 
@Aquiles
This mod does nothing special for sorting by Officer Rank.

And I don't intend to change that, as getting the officer status out of LWotC would add some significant lag to the sorting process - even with the new method Tedster put in for getting LWotC unit-details.

Plus if I add support for LWotC officer ranks, it would only be fair to then also add support for all the other officer systems, and suddenly a simple addition has me completely restructuring the sorting code to account for the extra variable.

Sorry :( Just not something I'm interested in doing at this time.
p6kocka 7 Nov, 2023 @ 3:31am 
Thanks for the latest update.
Aquiles 6 Nov, 2023 @ 10:16pm 
Hello, @RusyDios. I have a question. In vanilla, officers (I play LWotC by the way) are not sorted by their officer rank, but as soldiers, that means that officers are never on the top of the list if they don't have also the highest soldier rank. Your mod changes that?
RustyDios  [author] 6 Nov, 2023 @ 6:42pm 
@MrMister ... and everyone else that wanted it :) New "OnMission" status sorting is in, defaults to top of the list.

@p6kocka
Exposed the opening Living quarters tab to config, but also set the default back to the Soldiers list :)