LPS-43061 Make sure to preserve the order based on priority and serviceId (via the ServiceReference key)