(providers: IntegrationProvider[])
| 26 | type IntegrationStore = IntegrationStoreState & IntegrationStoreActions; |
| 27 | |
| 28 | function sortProviders(providers: IntegrationProvider[]) { |
| 29 | return [...providers].sort((a, b) => a.name.localeCompare(b.name)); |
| 30 | } |
| 31 | |
| 32 | function sortConnections(connections: IntegrationConnection[]) { |
| 33 | return [...connections].sort((a, b) => a.providerName.localeCompare(b.providerName)); |