ordinal

external val ordinal: Int(source)

Zero-based index in the enum declaration and its entries collection.