preserve current query with sort
Merge pull request #2 from weskinner/master

preserve current query with sort