Order By direction fix

this commit fixes #7