Add an order option to layer. Fixes #267