Fix indentation
Fix typo in variable name, start oldest job first
Fix getting all relevant jobtypes