joomla/joomla-cms — pull request #4085 by PhocaCz (2014-08-08 14:19:07+00:00)
Title: Update grid.php

See tracker 34042 on joomlacode.org:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=34042&tracker_id=34042

In short: javascript function includes "form" parameter but such is not sent by php sort function, which limits the setting of form name/id.