-made fix for order_by method not working correctly