Revert "[functions] removed default implementation of order()"

This reverts commit 458cadff5c7646aec900523b1f579edc06a0259b.
[functions] let's try 458cadff5c7646aec900523b1f579edc06a0259b again
* this time we actually enforce order()