find the max order of the same frequency node

Signed-off-by: 9drashijin <9drashijin@live.com>