Hi I have 3 fields by default lastname, firstname, e_code which the result is viewed using a table. What I want is a clickable header for example when the user clicks on the header lastname it will sort alphabetically. I already know the query to be used but my problem is the coding part on the table. Any idea? Thanks