How to sort enum variants?

They're taken into account as second criterion.

This will pass but shouldn't. (if the inner value was ignored they should be equal)