this has been a problem for a while. i'm using visual studio 2005, xp, and in a cpp file, i use the Sort Selected Lines to sort a bunch of text. but it doesn't sort right. i tried to get you a simple test case, but couldn't. i have a real-world example i can send, but it's confidential. what's an email i can send it to again?