Merge pull request #98 from janno-p/master

Fix single table ordered queries.