damian
inline fun <R> sorted(a: Int, b: Int, block: (min: Int, max: Int) -> R): R = block(Math.min(a, b), Math.max(a, b))