I must say, I'm amazed by the quick response. This is my first questoin on this board. But back to the question. I had already been trying that bit of code the two of you posted and it doesn't seem to work. My list of keys still isn't sorted by the date. Any clue why? I also tried cmp and <=>.