joomla/joomla-platform — pull request #1654 by Bakual (2012-10-30 18:38:57+00:00)
Title: Adding $form parameter to JHtmlGrid::sort()

The JS function "Joomla.tableOrdering" allows 4 parameters (order, dir, task and form), but JHtmlGrid::sort() only uses three of them. This commit adds the form parameter which allows a developer to choose the name of the form (instead of "adminForm").
This can be handy in case there is more than one form in an output or if the form needs another name for some reason.