Fixed sort order of tree entries.