I have a user-defined data type, say "people". It has parameter: id (unique), number_of_books, age, weight. The data set is built.
Now I want to have the ordered id with following criterias:
1. number_of_books
2. age
3. weight

which means, the order mainly depends on number_of_books, then age, then weight.

How could I implement this by using QT?
I am thinking about qSort(), but it has only one key to sort, right?
Thanks a lot~