controller/scheduler: Fallback sort hosts by total number of jobs

If the number of jobs of the same type is the same, sort by the total
number of jobs.

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>