They do try to maintain the relative spaces between students (not sure exactly how they do it).
EDIT*** If you are second place and get the second highest external HSC mark, that becomes your internal mark pretty sure. Things get a little bit more complicated when they swap ranks and do a shuffle.