Report question

Question: Why doesn't the sort function of javascript work well?