Calling sort on data to ensure pie is on correct side