rpmdevtools v.: 9.6
Hello. As noticeable the tool has no effect.
$ rpm -q kernel | rpmdev-sort kernel-6.2.9-300.fc38.x86_64 kernel-6.2.10-300.fc38.x86_64 kernel-6.2.11-300.fc38.x86_64
Correct output expected, thus packages arranged by decreasing version number; illustrated output:
kernel-6.2.11-300.fc38.x86_64 kernel-6.2.10-300.fc38.x86_64 kernel-6.2.9-300.fc38.x86_64
Why do you expect the packages to be sorted in decreasing order? Usually, the standard order is increasing:
$ { echo 5; echo 3; echo 4; echo 1; echo 2; } | sort -n 1 2 3 4 5 $