Added order function and updated example