core: eval_apply: Order gotos according to frequency.