sorted query works with infinite scroll