addrutil: Improve sort mode and add uniq mode.