Then do not forget to specify the sort class for the HTML of the table (
).
JavaScript
So, we came to the "filling" of the whole thing. Write the following fragment on the page:
The only thing you need to change in the script is the variable img_dir. It should point to the directory where you have the files 0.gif (sorting down) and 1.gif (sorting up).
download