static List<String> canonicalizeSecurityQuestions(final Map<String, String> questionMap) {
        val keys = new ArrayList<>(questionMap.keySet());
        keys.sort(String.CASE_INSENSITIVE_ORDER);
        return keys;
    }
Orders security questions consistently.

@param questionMap A map of question/answer key/value pairs
@return A list of questions in a consistent order
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/PasswordManagementService.java