Report question

Question: How to assign new numerical keys to an array and sort based on the original keys?