CAPEDWARF-172 Projection query results should be sorted according to ind...

...ex definition when query sorting is not explicitly defined