The order of creation in Genesis 2 differs from that of Genesis 1. Genesis 2v19 informs us that after creating Adam, God then created the animals and later created Eve. In Genesis 1, the order is animals, then humans. This has been long recognised by the scholarly community. However, if you read the NIV you would not see that as Genesis 2:19 has been deliberately mistranslated in order to 'harmonise' both creation narratives.