Sergipe borders two other states , Bahia and Alagoas .
It borders on two other states , Bahia in the south and west and Alagoas in the north , and in the east on the Atlantic Ocean .