sort line in cart