Re: Sorting

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Amit Nithian on March 17, 2001 at 00:39:27:

In Reply to: Sorting posted by Joseph Davidson on March 16, 2001 at 19:03:35:

: The spec does not say anything specific to how books and authors are added to the array. Would it be sufficient to add the respective items to the end of the array, or do we need to sort the array. Unless I am missing something, the spec doesn't say anything about sorting, it only mentions that the array template should assume there are overloaded equality (==) and less than (<) operators.

The specs, in the first paragraph, mention what was said earlier, that the databases are to be sorted by the respective fields. But it also says in the specs that books/authors must be added in the correct location of the sort order (last sentence of the third paragraph at the top of the first page).

It's like CS 1704 projects, where you could not add to the end and re-sort. I think that same principle holds true here.

Hope that it helps,

Amit Nithian

Follow Ups:

Post a Followup




Optional Link URL:
Link Title:
Optional Image URL:

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]