qsort was broken (rev. 2)

Signed-off-by: nixnodes <code@eth.si>