# Are enum's ordered?

Enums are ordered by the sequence in which they are listed in .kdata.

For example:

enum ProgressState => CREATED|PENDING_CANCELLED|COMPLETED|CANCELLED|RESET

Therefore, enum CREATED < PENDING_CANCELLED < COMPLETED and so on.

val state = ProgressState.CREATED
state < ProgressState.COMPLETED // true
state == ProgressState.CREATED // true