Add support for ASC and DESC when ordering

This fix issue #45 in a way @eaigner suggested.