XCOMMONS-467: Sort components based on dependencies before disposing them in EmbeddableComponentManager