Fixed missing Request class in order_by clause