If I have a string (ex. "rRaASSTt") how can I sort it by alphabet and put upper case before lower case letter? The example would come out like this "AaRrSSTt".
join('',natsort(preg_split('//',$argstring,-1,PREG_SPLIT_NO_EMPTY)));