im learning know data structures, im trying to sort a linked list with the bubblesort method. but i have 2 days trying to makit work but it dont works, if i exchange the data betwen the nodes i can sort the list, but i want to sort it exchanging and redirectioning the pointers,
any idea how to do that?? or link where i can analize the code in c++?, please must be in c++ because i dont know c.
the code should not be stl because im learnig from a book and i has not study that chapter yet.
thanks in advance
and please excuse my english
btw. i understand the bubblesort and can sort an array without problen. but want to sort a linked lists with custom created data objects.