Utility for calculating Pauli strings in "alphabetical" order.