Currently the order of Services being returned by SlingScriptHelper.getServices(...) is undefined similar to BundleContext.getServiceReferences(). The difference is, the latter could be easily sorted, because the ServiceReferences implement a Comparable interface, the former cannot be that easily sorted.
Therefore I would propose to stick to a predefined order in the returned array: https://issues.apache.org/jira/browse/SLING-5665 Are you all fine with that approach? Does anyone have any idea how to sort the services according to their ranking being returned by SlingScriptHelper.getServices(...). This must be done to fix https://issues.apache.org/jira/browse/SLING-5664. Thanks for any input, Konrad
