sortWithConstructor

internal fun <T> Iterable<KCallable<T>>.sortWithConstructor(klass: KClass<*>): List<KCallable<T>>

Sorts this according to the order of their columnName in the primary/single constructor of klass if it exists, else, it falls back to lexicographical sorting.