There is a historic discussion amongst scholars
Some believe Ali Akbar is older, he was 27 when he was martyred and Imam Sajjad was 24
Others say the opposite
As a student of Islam I believe the first opinion to be more likely as Akbar means the oldest
Allah knows best