Sort completion candidates by previous completion choices