I have a site where I allow people to post messages along with a name. Some people enter a common name like "Bob" while others write something like "--Martha" or "=greg=" or whatever.
Now that my db is full of entries like this, I'd like to allow people to view messages alphabetically by author. Since the names often have extra characters like "--" or "_=", the alphabetical order doesn't make much sense.
So, I'd like to define my own sort function that would ignore the junk characters and sort by of the first character of the name that's in the actual alphabet.
There are other ways to fix this problem, but I was just curious if it is possible to do it with my own sort function.
Thanks again.