Well, if you really wanted to use SQL, one system you could use would be: (1) convert the name to lowercase, (2) put a space in front of the name, (3) change all occurrences of " a" to " A", " b" to " B", etc., (4) strip the leading space. Not that complicated I suppose, but a lot of code.
For example:
[tt]
UPDATE tblname
SET
name=
SUBSTRING(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
CONCAT(' ',LOWER(name)),
' a',' A'),
' b',' B'),
' c',' C'),
' d',' D'),
' e',' E'),
' f',' F'),
' g',' G'),
' h',' H'),
' i',' I'),
' j',' J'),
' k',' K'),
' l',' L'),
' m',' M'),
' n',' N'),
' o',' O'),
' p',' P'),
' q',' Q'),
' r',' R'),
' s',' S'),
' t',' T'),
' u',' U'),
' v',' V'),
' w',' W'),
' x',' X'),
' y',' Y'),
' z',' Z'),
2
)
[/tt]