Need help, with list

Can someone help with home work? I'm beginner, i searched whole internet and couldn't find right answer. :/ So the task is: The database, which can perform sorting by attributes set. The program should allow:
1.introduce a new entry
2.sort items by the existing attribute
3.print the sorted records.
Node data stored on the goods: name, price, quantity.
I would really appreciate anyones help :)
Topic archived. No new replies allowed.