BGP output

Output: I want to know if both the paths have the same AS numbers, on what basis it has selected the best path via R3? I am guessing on the basis of the highest router id of R3 than R2?

R1#show ip bgp
BGP table version is 2, local router ID is 192.168.13.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*  4.4.4.4/32       192.168.13.3                           0 3 4 i
*>                  192.168.12.2                           0 2 4 i

2 posts were merged into an existing topic: How to Read the BGP Table