Elementals.js

Latest Version: 3.7 Final 20 December 2018

Method _.USort.restore

Summary:

When passed a UL, OL, or TBODY that has already been sorted by _.USort.element this method will return that element to its original sort state. If it has not been sorted by that method, no action is taken.

NOTE, if you pass it a non UL, OL, or TBODY element, this method will throw a typeError halting JavaScript execution.

Calling Convention:
_.USort.restore(Element)
Parameters:
Element
A TBODY, UL, or OL type Element object that you wish to restore to its original order.
Returns:
Nothing

Live Examples

The live demo's for _.USort.element include buttons in their code demonstration how to use _.USort.restore. These demo's are also included in the distribution archive.

  1. Sorting a UL or OL
  2. Sorting a table body

Advertisement