How can I create a separate sorted copy of an array without modifying the original

join shbcf.ru