Why is the first array getting printed twice when both arrays are ordered like this?

Printable View