See the following screen. It is a part of my application. Anyway, you can see a list there with 4 columns (there could be even more). While I was testing it manually, I noticed it was crashing when I clicked 'last name, first name & organization. Similar listing with sort order options is vastly used in my project. So, what I did, I wrote selenium script.
With very basic knowledge, you can easily record and play by selenium IDE. If you do so, it may look like this:
For a better code management above code can be like this too:
Here you can see that I'm clicking each of the column head and making sure it is landing to correct page. But imagine there could be more columns in a listing. In fact on other pages (in this application) there are many columns than this page. So, it can be done in loop too. In this particular case I've done it the following way:
You may have a question like, in plain script (Image-3) if it crashes, we can easily notice and can know for which one it crashed/failed (see image-5. It becomes red):
But in loop, it would look like image-6. Here you cannot determine for which column it crashed.
I recommend you to install Stored Variable Viewer by Samit Badle. Install it and you'll see a new tab named Stored-Var at bottom panel of selenium IDE. There you can see the variable value and from there you can see for which one it crashed/failed (see image-7, red arrow mark)
Just to show you that it really works, I've intentionally made a typo in ORGANIZATION and after running it it crashed/failed and when I see it in Stored-vars, I can see it like this: