Add sorting with labels in gdt reduce function
Improves plot limits calculation when multi labels are used