fix_5B integrate sort function by frequency

can be removed