Write a sorted feature index flatfile for reference.