The Priority selection filter in the Issue Tracker presents dropdown options in alphabetical order, but should display them in the same order defined in the php array - the order of priority. See code snippet below
I suspect this is a known issue _in multiple modules_ with an easy fix.
Is there already a way we should be forcing the order of these dropdowns?
cc @johnsaigle @HenriRabalais
Occurs with Chrome, Firefox, Safari... on Demo and on test-dev-loris(23 branch), tested on mac.
Order defined in the php array:
$priorities = array(
'normal' => 'Normal',
'high' => 'High',
'urgent' => 'Urgent',
'immediate' => 'Immediate',
);
Order as actually displayed :

Related (sort of) to: #4602 - see @johnsaigle's comment recognizing this sort-order behaviour/implication in 2019
As you said this should probably be case-by-case. Maybe there is a generic way to specify sorting for dropdown elements within React? @HenriRabalais @maltheism @zaliqarosli maybe one of you would know?
IIRC, @ridz1208 had made a PR to enforce alphabetical ordering. I'm not sure if there's a way to override this at the moment.
Is there a way to extend/modify a component so that a sort ordering can be specified via a param?
@HenriRabalais yeah I had but I forgot how to use it. I do remember adding that though
Looks like there might be - it's not commented in the code, but I think the props sortByValue determines if the drop down values are sorted alphabetically. The value defaults to true, so a value of false would have to be passed to the SelectElement for the prop sortByValue.
OK so it sounds like we can make a PR to fix the issue tracker without much trouble in this case and that we have a lot of flexibility in general.
@christinerogers do you have any other examples of this?
@johnsaigle : sure, more examples --
thanks!
Note: this is an effect of the default change from #3952 -- took effect in the August 2019 release 21