Thanks cal,
I had a good long thought about this and in the end took a timestamp of the date before the original save to the text file - appended this to the start of the line.
when I now read in the text file into an array, the timestamp (which is now the first part of the array)can be sorted into numerical order using the sort function.
"we live and learn"
TW