Fix bug in specifying comparator for sorting

there may be more of those

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>