added another way to check sort feature