Make candidates of output of quick sort better

In the past, candidate was sorted  alphabetically by input code, which is bad for quick.

Now with these code, it sorts base on frequency of chinese character found in wiki, which is totally free.

It test thoroughly in my pc, and was fixed and cleaned up with bochecha's help, so the performance should be good.