I may have the solution but advice still needed.
I have grabbed all the links in an array and tried bubble sorting them alphabetically. The first two things I noticed was the “n” which I can eliminate but I use Firebug as my debugger and it reports whitespace as whitespace. I do use a lot of ‘s in the HTML so it may be these that cause the results to show “undefined”. I tried removing “undefined” and got a null instead. I tried removing the null and got undefined.
As I am looking at the “.text” property and Firebug probably shows as whitespace , maybe I should look for and possibly use “.innerHTML” instead. All I need is to remove leading, trailing & multiple spaces.
What do the experts think? I am going home to try, but this is at the end of a very long road.
TIA