don't die qsorting a 0 size inventory