fixed
1) IP
2) log sorting

Signed-off-by: Peter <mcheung63@hotmail.com>