#117: fixing pagination bug fir ordering