sort legend by worker count