Updated example for order function