In the revised version (attached) I've renamed the dollar function $() to
Dlr() to avoid any possible conflict with jQuery - a sensible precaution
I'm particularly proud of my sorting approach so I've added the following attribution which I would prefer is kept please
It occurs to me that if I have a carousel made of an ol with li's containing an image, title, amount and, perhaps, a date in
separate spans, then, using my code, I could sort the carousel at the touch of a button