sort copy and str