Restore user-defined ordering of profiles (#38665)

This PR fixes a regression where settings profiles were no longer
ordered in the same order that the user defined in their settings.

Release Notes:

- N/A
e602cfadd3Joseph T. Lyons committed on 9/22/2025, 7:35:44 PM· committed by GitHubparentd4adb51
2 files changedLine totals unavailable