fixes #2777 Unable to edit categories sort order in ie9

Fixed the issue, tested with all browsers, and committed the code for review, please check it.