endpoint: Use sort.Slice() to reduce boilerplate
endpoint: Use sort.Slice() to reduce boilerplate

Suggested-by: André Martins <bc9800b9d52a24cce72a73dd528afed53f10e5fc@cilium.io>
Signed-off-by: Joe Stringer <16a9a54ddf4259952e3c118c763138e83693d7fd@cilium.io>

michi-covalent/cilium,tgraf/cilium,tgraf/cilium,michi-covalent/cilium,cilium/cilium,cilium/cilium,tklauser/cilium,tklauser/cilium,michi-covalent/cilium,tgraf/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,tgraf/cilium,tklauser/cilium,cilium/cilium,cilium-team/cilium,cilium/cilium,tgraf/cilium,cilium-team/cilium,tgraf/cilium,michi-covalent/cilium,michi-covalent/cilium