Sort arrays and slices of primitives in const contexts.