private Comparator<Extension> getExtensionLoadOrder() {

        // Parse desired sort order of extensions
        try {
            return environment.getProperty(EXTENSION_PRIORITY, ExtensionOrderProperty.DEFAULT_COMPARATOR);
        }

        // Sort by filename if the desired order cannot be read
        catch (GuacamoleException e) {
            logger.warn("The list of extensions specified via the \"{}\" property could not be parsed: {}", EXTENSION_PRIORITY.getName(), e.getMessage());
            logger.debug("Unable to parse \"{}\" property.", EXTENSION_PRIORITY.getName(), e);
            return ExtensionOrderProperty.DEFAULT_COMPARATOR;
        }

    }
Returns a comparator that sorts extensions by their desired load order,
as dictated by the "extension-priority" property and their filenames.

@return
    A comparator that sorts extensions by their desired load order.
guacamole/src/main/java/org/apache/guacamole/extension/ExtensionModule.java