Made minor tweaks to encryption password sorting.