I rank Jack in the top 5% of all my former junior students.
Is it comparing "Jack" with the students at current state but who were "junior students" or just comparing "Jack" with the students at their "junior" state?
Context: Jack is a junior student seeking the recommendation letter from the professor. But the professor doesn't teach anymore. So if he wants to rank Jack he can only compare Jack with his former students at Jack's current level.