You may also need to consider the HSC Examination Marks.
Something similar happened to myself. My mate was ranked higher than me and I had lower marks than them in our Year 12 reports, and we had similar external marks, but for the internals I ended up receiving a higher mark for some reason. I...