added order function to portfolio