mirror of
https://github.com/apple/container.git
synced 2026-09-21 23:25:43 +00:00
Sort networks by ID in API server list(). (#1487)
Closes #1483. Consistent well-defined behavior for server APIs.
This commit is contained in:
@@ -179,6 +179,7 @@ public actor NetworksService {
|
||||
return serviceStates.reduce(into: [NetworkState]()) {
|
||||
$0.append($1.value.networkState)
|
||||
}
|
||||
.sorted { $0.id < $1.id }
|
||||
}
|
||||
|
||||
/// Create a new network from the provided configuration.
|
||||
|
||||
Reference in New Issue
Block a user