I've found that it is shortest/front to longest/rear. Others have said it varies between years. Put them in as a dry run to see how they fit without the liner.
They are normally color coded, not sure what the codes are. But I have found that it is shortest/front to longest/rear being that the roof tapers thin to thick. I ended up needing atleast 2" of rod exposed on each end of pocket.