I have a list of ~1200 <a>
tags that need to be organized alphabetically. Is it possible to have this list re-arranged alphabetically based on the <a>
Content</a>
within the tag while keeping all link structure?
example:
<a href="https://digicoll.library.utoronto.ca/mmdl/UPT106F.pdf">
Vijayakārī-[jātaka-tō] (sections 4–9)</a>
<a href="https://digicoll.library.utoronto.ca/mmdl/UPT002F.pdf">Sarabhaṅga-pyui.</a>
<a href="https://digicoll.library.utoronto.ca/mmdl/UPT108F.pdf">Saṅkhārabhājanī</a>
<a href="https://digicoll.library.utoronto.ca/mmdl/UPT109F.pdf">Jhāpanaku suil-achuṃ:-aphrat</a>
<a href="https://digicoll.library.utoronto.ca/mmdl/UPT110F.pdf">[Mahā]sutasoma-pyui.</a>
Source code from -> https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_sort_list You just need to replace 'LI' with 'a'