[eluser]richthegeek[/eluser]
You are not being hugely clear here...
It looks like you are referring to a "linked list" data structure, but this is a redundant concept in PHP - all arrays act effectively like linked lists, and you can use functions such as sort, usort, asort, ksort on them.
Try phrasing your question less generically?