Update Cart.php

order attributes by position instead of name