sort array of strings by sorted value javascript code example Example: javascript check string sort ascending sort text javascript