Elementals.js

Latest Version: 3.0 RC 1 17 July 2017

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