Is there a way to validate if the fields in one html table have sorted?

Is there a way to validate if the fields in one html table have sorted?