joomla/joomla-cms — pull request #4665 by prokyhb (2014-10-14 11:53:19+00:00)
Title: Parent RegExp selector fix for sortable list

$('tr[parents*=" '+parentId+'"]'); - selects parent id 2, 2[0..9] etc. so when there are a lot of categories, sorting does not work properly.

'tr[parents~="'+parentId+'"] - this select exact phrase selected by space or at the beggining or the end of attribute value.

http://api.jquery.com/category/selectors/attribute-selectors/