How to sort books?

Can anyone write a code in C++ for sorting books? There need to be textual file next to the program, with for example...:
1
2
3
4
5
6
Author1 1990 Bookname1 15 
Author1 1990 Bookname2 21 
Author2 1989 Bookname3 9 
Author2 1989 Bookname4 1 
Author2 2000 Bookname5 9 
Author2 2000 Bookname6 17 

...text in it. After user enter...:
1.Enter a name: Author name
2.Enter a year: Year
... books have to be sorted by Name and Number of (supplies) books (how many books are there)...

I would be really thankful if someone can write this code!
This is not a homework site. We won't do your homework for you. However, we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find derivative of function without knowledge in arithmetic, you cannot do more complex tasks in programming without clear understanding of basics
Topic archived. No new replies allowed.