View Single Post
Old Jun 15th, 2005, 3:30 PM   #24
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Jean Jones and Bob Jones are not compared in full then?
Not always. Consider a large database being sorted on one or a few fields. The rest of the data (fields) are still there. Sometimes one wants them to maintain their previous order within the sort, sometimes one doesn't care. Rather than sort on a primary field and a secondary field, one could sort on first name, THEN sort on last name, and achieve the same results IF the sort was stable.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote