Simple script used to sort arrays containing strings