Script for ordering lists?

Does anybody know of a script and if so what kind that will make it so lists can be ordered? So if say there are a list of cars type model make etc and the user could click on a heading and the list would order itself by group…