log & shortest job first