sorting k integers from linked list

how to sort k integers which I found from the linked list?
What do you mean by "found"?

If you do look at
http://www.cplusplus.com/reference/algorithm/sort/
and
http://www.cplusplus.com/reference/list/list/sort/
you might notice that the first generically swaps values, while the second updates links without touching values.
Topic archived. No new replies allowed.