Fixes post-aggregation sorting by grabbing the correct field.
Improvements to logical aggregator flow and fixed support for multiple constraints.