Sorting array elements

This document contains an array of planets in our solar system.
Click on a button to sort the array: