::std::ops::

Function order

pub fn order<#uint N>(x: int<N>, y: int<N>) -> (int<N>, int<N>)
Expand

Sorts two integers in ascending order.

Examples

assert order(2i8, 10i8) == [2i8, 10i8];
assert order(15i8, 3i8) == [3i8, 15i8];