sort : ('a -> 'a -> bool) -> 'a list -> 'a list
sort op list
# sort (<) [3; 1; 4; 1; 5; 9; 2; 6; 5; 3; 5; 8; 9; 7; 9];; val it : int list = [1; 1; 2; 3; 3; 4; 5; 5; 5; 6; 7; 8; 9; 9; 9]
# sort free_in [`(x + 1) + 2`; `x + 2`; `x:num`; `x + 1`; `1`];; val it : term list = [`1`; `x`; `x + 1`; `x + 2`; `(x + 1) + 2`]