In researching the best ways of sorting flight tickets displayed to end users in the DOM I did some research to compare to scenarios:
Given that a list of items exists on the dom (and is recreate-able in JavaScript):
- Sort the items in JavaScript and re-render the entire list
- Extract the dom items using jQuery, sort them, and re-append them to the dom