Default sorting the Dojo DataGrid

This is how I have configure default sorting for our grids:

dojo.declare("DefaultSortableGrid", dojox.grid.DataGrid, {
    sortInfo: 1 // the index (1-based) of the column 
                // to sort, + => asc, - => desc
});

And then I use DefaultSortableGrid when defining the grid:

<div dojoType="DefaultSortableGrid"
    id="grid"
    rowsPerPage="50">
</div>

Pretty simple really.

mootools

From the guys that brought us moo.fx comes the next big thing mootools – an ultra compact javascript framework. Awesome stuff!

mootools is a very compact, modular, Object-Oriented javascript framework. Its unique design makes it extremely crossbrowser, easy to use, and a snap to extend with your own code. It comes with a choice of more than fifteen scripts, plugins and addons, including Effects (moo.fx) Ajax (moo.ajax), Dom Navigator (moo.dom), Drag and Drop, Sortable lists, cookies Manager and many more.