YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

DataTable Widget  2.3.1

Yahoo! UI Library > datatable > YAHOO.util.Sort

Show Private Show Protected

static Class YAHOO.util.Sort

Sort static utility to support Column sorting.

Methods

compare

void compare ( a , b , desc )
Comparator function for simple case-insensitive string sorting.
Parameters:
a <Object> First sort argument.
b <Object> Second sort argument.
desc <Boolean> True if sort direction is descending, false if sort direction is ascending.
Returns: void


Copyright © 2007 Yahoo! Inc. All rights reserved.