Addded sorting of the character array so that it's no longer dependent on the items in the .lcd XML file being in correct order.