This plugin lets you sort text layers by their string value.