Correctly build order_by string for sections