I have a list that is filled with HTML elements. I also have a list filled with date/times, which is parallel to the HTML list.
How can I sort the HTML list based on the
You can use zip.
timestamps, elements = zip(*sorted(zip(timestamps, elements)))
The result will be two tuples which you can convert to lists if you prefer.