Test query search ordre

Test that the order comes out as expected when doing a query
added support for ScanIndexForward and actual range ordering on range items and not just the dictionaries
tests for reverse query order
Merge pull request #103 from JeffMGreg/master

ScanIndexForward now supported when doing a query