preserve current query with sort