Here, I'd prefer if you made a new copy of the array like `var faces = object.faces.slice();` and then did operations on that, instead of sorting the actual array.