[Olena-patches] 2302: Use util::ord in morpho::line_gradient instead of ad hoc code.