Adds method to sort payment methods alphabetically

Sorts payment methods alphabetically and adds conditional code that
checks for presence of "sorted" methods.