Added ability to add orderings (they just don't have an effect yet)
Ordering now works, also fixed possible bug with grouping