I would like the possibility to specify the displayed order of the states in a timing diagram. Currently the states are displayed in the order they appear.

I have two basic use-cases, both having numerical values for the states and I want to have them displayed in the numerical order, i.e. the lowest value at the bottom.

Consider the following example:

@startuml

robust "Variable" as variable

robust "Binary" as binary

@variable

0 is 0

1 is 2

2 is 1

3 is 3

4 is "-2"

@binary

0 is 1

1 is 0

@enduml