fix collapse bug
cumul requires data to be in desc order