Try to fix qsort on special inventories