Show first waiting step if waiting for more than one

* if a node is waiting to run multiple steps, the first one to run
  should be shown in the summary row, not the last one
* when comparing step states, first matching the state is shown