Added sorting validator class for automated testing