[backend] sort jobs to remove randomness, cope with mangled job names