Fix incorrect sort direction index
Merge pull request #2 from hartez/OrderByFix

Fix incorrect sort direction index