Fixed sorting issues in modals under Joomla! 3.2