tablesorter.js
No description.

File Location

/goog/ui/tablesorter.js

Classes

goog.ui.TableSorter
A table sorter allows for sorting of a table by column. This component can be used to decorate an already existing TABLE element with sorting features. The TABLE should use a THEAD containing TH elements for the table column headers.

Public Protected Private

Enumerations

Global Functions

goog.ui.TableSorter.alphaSort(ab) number
Alphabetic sort function.
Arguments:
a : *
First sort value.
b : *
Second sort value.
Returns: number  Negative if a < b, 0 if a = b, and positive if a > b.
code »
goog.ui.TableSorter.createReverseSort(sortFunction) function(*, *) : number
Returns a function that is the given sort function in reverse.
Arguments:
sortFunction : function(*, *) : number
The original sort function.
Returns: function(*, *) : number  A new sort function that reverses the given sort function.
code »
goog.ui.TableSorter.noSort(ab) number
Disables sorting on the specified column
Arguments:
a : *
First sort value.
b : *
Second sort value.
Returns: number  Negative if a < b, 0 if a = b, and positive if a > b.
code »
goog.ui.TableSorter.numericSort(ab) number
A numeric sort function.
Arguments:
a : *
First sort value.
b : *
Second sort value.
Returns: number  Negative if a < b, 0 if a = b, and positive if a > b.
code »

Directory ui

File Reference