joomla/joomla-platform — pull request #1541 by tholoksh (2012-09-20 10:06:50+00:00)
Title: Update to libraries/html/grid.php. Fixes grid.sort for components that use query strings in their URIs.

Some browsers will follow the "#" hyperlink generated by JHTML's
grid.sort command unless the javascript onclick returns false. This will
cause components with URLs that look like "index.php?option=com_example"
to redirect to "index.php#", effectively breaking sorting functions.
The commit adds "return false;" to the generated javascript in onclick.
This affects at least frontend functions that use this in Joomla! 2.5.x