joomla/joomla-cms — pull request #2797 by asika32764 (2014-01-16 04:26:04+00:00)
Title: Use data-direction attribute to update direction

When we update direction, the default `newDirection` variable is 'ASC', but it will cause the wrong direction if we didn't write ordering options in `filter.xml`.

I changed it to get data from `data-direction` and it working fine now.