Hello, Friends, Thanks for all those information regarding about my sorting file problem. Finally, I found the best easy way to do this is just use DOS sort command, this will preserve the original format of the file. Rebol can do this, but it needs a little care for file read/write. Cheers. Tiana