aquastream Posted February 8, 2010 Share Posted February 8, 2010 After sorting an array using a sorting function (sort, rsort, asort etc), I want to reset the array back so that its values are located at their original index numbers. What command is there if any which achieve this? Quote Link to comment Share on other sites More sharing options...
btherl Posted February 8, 2010 Share Posted February 8, 2010 There isn't any. You can make a copy of the array before sorting. Quote Link to comment Share on other sites More sharing options...
aquastream Posted February 8, 2010 Author Share Posted February 8, 2010 Yeah that's what I thought. I'll keep the thread marked unsolved just in case, but I was pretty sure my Googling was good enough. Thanks for responding btherl! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.