gobuffer: Add gobuffer__sort() helper
Add a helper to sort the gobuffer. Trivial wrapper around qsort().
Committer notes:
As pointed out by Alan Maguire, there is no need to cast the first
qsort() argument to void, remove that cast.
Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/ba9ff49e099583ab854d3d3c8c215c3ca1b6f930.1711389163.git.dxu@dxuuu.xyz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>