sorting issues with closing VET modal