I guess all of you with any SQL exposure know of the common multiple-order-by usage (ORDER BY foo ASC, bar DESC).
(For the user of course, the latter 'bar' sorting only manifests for result sets with multiple equal 'foo' values.)
In a similar fashion, I'm half-foreseeing the need for users "ranking" their solutions by multiple "priorities" in order of importance, which might translate into the equivalent of eg.
`solve minimize cost, maximize turnover, minimize time` — except that syntax won't work.
Now I'm just curious if there's a well-known already-existent constraint pattern (array of the 3 ints, with maximize turned into minimize and negated values, or some such? haven't tried) or even some built-in syntax/construct/stdlib-helper for this sort of scenario?
Of course, the calling app can always just sort in-streaming solutions itself, so this isn't perhaps too critical of a capability for native/builtin support. I'm just curious if the consideration of this has come up before in the MiniZinc/solver community and how this tends to be "best-practiced" in your experience.