|
|
**********INSERTION SORT********** Original Data Vina, California, 237 San Francisco, California, 812826 Santa Fe, New Mexico, 68642 Sorted by POPULATION CPU time (seconds:nanoseconds): 0:2345 on 3 records Vina, California, 237 Santa Fe, New Mexico, 68642 San Francisco, California, 812826 Sorted by NAME CPU time (seconds:nanoseconds): 0:4233 on 3 records San Francisco, California, 812826 Santa Fe, New Mexico, 68642 Vina, California, 237 |
|
|
**********INSERTION SORT********** Original Data Vina, California, 237 San Francisco, California, 812826 Santa Fe, New Mexico, 68642 Sorted by POPULATION CPU time (seconds:nanoseconds): 0:766 on 3 records Vina, California, 237 Santa Fe, New Mexico, 68642 San Francisco, California, 812826 Sorted by NAME CPU time (seconds:nanoseconds): 0:1564 on 3 records Vina, California, 237 San Francisco, California, 812826 Santa Fe, New Mexico, 68642 |
operator>
instead of operator<
operator> |
operator< |
(*data[j]->city) > (*temp->city))