i apologise.i thought that by uploading the codes that you would get a better understanding of what i was doing.as i explained i had no clue as to how to do the sorting of link list.again i apologise.thank you for assiting