Fix sort error for connection log