Whether this phase comes before another phase.
bool isBefore(TaskPhase other) => index < other.index;