Clear all the entries in a tree.
This will mark the tree as modified; the modified entry will be written back to disk on the next git_object_write().
Tree object whose entries are to be sorted