Adds a Sort by Favorites button. Also keeps the anchor tags in the right place, and allows restoring the original sort order.
Ниже показаны версии этого скрипта, в которых изменялся код. Показать все версии.
Adding better logging of sorting vs restoring in JS console. Nothing end users will notice.
Removing button height to fix sizing issue.
Cleaned up code and comments, and switched back to an event-loop-blocking method of adding comments because waiting for animation frames or setTimeout were both an order of magnitude slower.