T
Tagore
Hi,
I want to sort a list of pairs based on key values. e.g. If my pairs
are like
(4,3)
(2,8)
(3,10)
(19,23)
(13,14)
then I would like to sort this with final list as:
(2,8)
(3,10)
(4,3)
(13,14)
(19,23)
What would be best data structure for this in C++?
Thanks,
I want to sort a list of pairs based on key values. e.g. If my pairs
are like
(4,3)
(2,8)
(3,10)
(19,23)
(13,14)
then I would like to sort this with final list as:
(2,8)
(3,10)
(4,3)
(13,14)
(19,23)
What would be best data structure for this in C++?
Thanks,