Posted by hussein on July 16, 2000 at 18:43:00:
In Reply to: sorting... posted by CHARMS4EVA on July 16, 2000 at 17:07:44:
: How do we put it in order, like tell it to print the earliest one first? I understand, if the years are equal, you check the month, and if the month is equal you check the day... and so on and so on.... but how do you tell it to print one before the other? I know its a basic question....
you need to somehow sort the list after or during each add/remove operation.
most people are doing it after each operation by incorporating a sorting function for that purpose.