freelance simulation specialist
You can also try to add up your two attributes in one user defined attribute: the primary sort criteria is the "high" value and the secondary the "low" one (I assumed, that your secondary value is of type "datetime").
var prio1 := @.Prio var prio2 := @.DemandDateTime var prio1scaled := 1000 * prio1 var prio2scaled := log10(prio2 - str_to_datetime("1.1.1970 0:00:00"))
@.CombinedPrio := prio1scaled + prio2scaled
That user defined attribute "CombinedPrio" you can use as your sort criteria and set it in control before the part enters the sorter.
PS: It can be tricky to find a good sum of the two values. Dependent on the range of your values, you perhaps have to adjust the 1000 * and the log10() in the code.