Redefine ac-comphist-score and ac-comphist-sort to adjust the order of candidates