After generating table, need to sort it by priority to ensure its sorted entry vector invariant is held.
Got rid of runover line using handy c++11 auto.
Allows incrementing priority up to and including any entries whose
action sets agree with updating entry.