In Chapter 11 of the "Ender's Game" we see the battle between Ender's Dragon Army and the Rabbit Army and their subsequent victory over the Rabbit Army which put Ender's army at the top position. So the Dragon Army was ranked number one. He was ahead not only because of the perfect score but also because Ender was ahead in other categories as well.