Quzah I am impressed at how much you know about this C stuff. I posted this somewhere else but I wanted to ask you, it's similar to what we were discussing here, so I'm reposting it here, maybe you know something about this. Thanks for your help

repost:

I have a linked list. Each node has 2 pieces of data (a name and a number) plus the pointer to the next node.

One of the pieces of data is an arbitrary number. I need to somehow create a function that can print out the names in the ascending order of their corresponding numbers.

for example if:

Code:
NODE 1: brad,5
NODE 2: joe, 7
NODE 3: ralph, 2
then my function should print out:
Code:
ralph
brad
joe
does anyone know how I might go about doing this, I'm new to link lists and this is confusing for me, I'm not asking for code just ideas.