rangeFromUnordered

fun <T : Comparable<T>> rangeFromUnordered(bound1: T, bound2: T): ClosedRange<T>

Creates a ClosedRange from a couple of unordered values.