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.