
https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/set-the-feature-drawing-order...
in the pic above, it is sorting the drawing order alphabetically.
we'd have to assign a rank/score to each status per record, so it can draw the layer accordingly.
unfortunately, it is only supported within pro, not as web feature layers.
when publishing, we get this warning:
20027: Layer uses advanced renderer settings
Advanced settings are not supported
This is misleading, because when I share this map as a web map from pro, the following json gets added to the operational layer within the web map:
"layerDefinition": {
"orderBy": [
{
"field": "otp_status",
"order": "desc"
}
]
}
So, although the layer draw order is not supported directly by the web feature layer, the draw order is able to be applied to the operational layer within a web map.
this setting is controlled directly in the web map by the 'Feature Display Order' property:

https://enterprise.arcgis.com/en/portal/11.2/use/set-feature-display-order.htm