Add a new feature that allow users to press header to sort the corresponding column

Add a new feature that allow users to press header to sort the corresponding column.