fix static check for bbox sorting, don't sort shadows