slightly more cautious fix for sorting the reason selector, #31702