this repo has no description
1include "sort.mzn";
2
3/** @group globals.sort
4 Return a multiset of values that is the same as the
5 multiset of values in \a x but in sorted order.
6*/
7function array[int] of var int: sort(array[int] of var int: x) ::promise_total =
8 let {
9 array[1..length(x)] of var lb_array(x)..ub_array(x): y;
10 constraint sort(x,y);
11 } in y;