This information is already in our documentation:
If index is negative, the index is counted from the end of the matching set.
This means that if you call child(-1), the last item will be returned. If you call child(-2), the second item from the end will be returned, etc.