scheduler: return schedules in a deterministic order

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>