file.tex /makeindex file.idx file.ind

When I compile by running $latex file.tex, an index file
file.idx is created which is NOT lexicographically arranged.
I know that there is a package that converts the file.idx file
to lexicographically arranged file.ind file.
Will somebody supply me the appropriate terminal command?
Thanks.
P.Rudra.

Try http://www.tex.ac.uk/tex-archive/indexing/makeindex/doc/makeindex.pdf

Many thanks. I got the answer.
P.Rudra.