refactored jobs fetching in order to have some easy sorting functionnality