This tutorial shows an example how to sort an array using natsort() function available in PHP. The natsort() function sorts an array using natural order sorting algorithm.
This function implements a sorting algorithm that orders alphanumeric strings in the way a human being would read while maintaining key/value associations.