Sorting to Index files

Included all sorting info to the index files.