stacked barchart sort fix -handle undefined