Fix bug where indices into account names were not always into a sorted list for password triggers