Sort struct dockeys

Please find the prefix instead of splitting:

```
if i := strings.Index(name, ","); i >= 0 {
        name = name[:i]
}
```

that's a trivial, non-allocating, and to-the-point operation compared to splitting.