Updated to use unshift instead of push.
Realized I really did want push instead of unshift.
Updated unit tests to check for order.
Merge pull request #186 from zero21xxx/parents-fix

Updated to use unshift instead of push.