When Jack, James, Jim and Jane stand by age, Jack being the youngest stands first while James brings up the rear. However, when they stand by height, Jim being the shortest stands first while James comes to the third spot. In both lines Jane remains at the second position. Who is immediately younger than James?