Sort struct dockeys

if nameA < nameB {
        return -1
}
if nameB < nameA {
        return 1
}