added 'sort' method for objects of class 'validation'