From: Mmcolli00 Mom Date: 2009-01-11T23:43:11+09:00 Subject: Re: sort hash, hash key and val off by one, see attached I figured it make no sense if I tried to explain it in a nutshell. I just need to somehow find the next key in a hash and see if there is a match with the current value. If so, then I could insert "no value" then make all other lines equal so long as they are a match. Instead of this... PersonID,PersonID ID,ID LastName,Social Security Social Security, Address Address,Unique ID Unique ID,Potassium It would then look like this... PersonID,PersonID ID,ID LastName,"no vale" Social Security, Social Security Address, Address, Unique ID, Unique ID Potassium, Potassium -- Posted via http://www.ruby-forum.com/.