Added string sort for output