rangeFromUnordered

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

Creates a ClosedRange from a couple of unordered values.