Now behaviours are sorted in a map rather than a vector to allow any signed value