Sort an array of strings

Sort an array of strings by the symbols contained in them.