Sorting on name (with vectors)

Im new to vectors in c++ and i am trying to create a function
to sort data from a file on name or postal code.
I read something about indexing.
How could i do this?

By calling std::sort with a custom comparison function. See:
http://www.cplusplus.com/reference/algorithm/sort/
Thanks for info.
Just saw it in the other thread ;)
Topic archived. No new replies allowed.