Added comment to writing and sorting feature data