Page Contents
Home > @loopback/core > LifeCycleObserverRegistry > sortObserverBindingsByGroup
LifeCycleObserverRegistry.sortObserverBindingsByGroup() method
Sort the life cycle observer bindings so that we can start/stop them in the right order. By default, we can start other observers before servers and stop them in the reverse order
Signature:
protected sortObserverBindingsByGroup(bindings: Readonly<Binding<LifeCycleObserver>>[]): LifeCycleObserverGroup[];
Parameters
| Parameter | Type | Description |
|---|---|---|
| bindings | Readonly<[Binding](/doc/en/lb4/apidocs.context.binding.html)<[LifeCycleObserver](/doc/en/lb4/apidocs.core.lifecycleobserver.html)>>\[\] | Life cycle observer bindings |
Returns: