Fixing problem with sort. Tested in WP 3.6.1