There are a number of different ways you can sort an array.
Excel's sorting is by far the fastest.
The Bubble sort is reasonably fast with small arrays but for larger arrays (> 5,000) forget it !!
The Quick Sort is good but if the array is almost sorted then forget it.
You can use the following line to sort an array in Microsoft Word