This (undesirably) changes the original array.