sorting table upgrated. changed the id to class attributs in the html tags so to use the table more than one time on the same page.