Added client sorting of order history which maintains proper ordering on re-order.