Order can be decreasing as well as increasing

Closes #42