Multiple grid sorting example

This example shows how to sort a grid by more than a single field.

The store is initially sorted by Rating DESC then by Salary ASC, as indicated in the toolbar.

Click a button to change sorting direction, drag buttons to reorder them.

This example also uses the Ext.ux.ToolbarDroppable plugin to allow column headers to be dropped onto the toolbar. Try it with Name column header. Each column is only allowed one button, so Rating and Salary cannot be dropped in this example.

Note that the js is not minified so it is readable. See multiple-sorting.js.