fixed result sort for jobs (fixes #35)