add support for orderings - fixes #11