We will need an NSMutableArray at some point since we need to sort the array. By intermediate var, do you mean re-creating later another NSMutableArray ? I'm not sure the memory impact would be positive.