Added gon to initialize query from request url, with unit tests
added spec for default sort order