--TEST-- sort() functions preserve foreach by reference iterator pointer --FILE-- --EXPECT-- 1 2 3 2 1 0