Fixes issue where ancestors would be returned in natural order instead of their actual order. Fixes #39