A first solution to implement the order_by method refined.