fixed sorting bug in default aggregator