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

Building on the above proposed syntax:

robust "Flow rate" as rate

rate has "35 gpm" as high

rate has "15 gpm" as low

rate has "0 gpm" as none

@0

rate is high

@5

rate is none

@6

rate is low