This code squares all list items, places them in a new array, and then sorts it.