$line ): $sort [ $line_number ] = $text [ $line_number ]; endforeach; $input = trim ( implode ( "\n", $text ) ); $output = trim ( implode ( "\n", $sort ) ); endif; function transliterate ( $string ) { return strtolower ( preg_replace ( '/[^-\w\t]+/', '', str_replace ( ', ', "\t", iconv ( 'UTF-8', 'ASCII//TRANSLIT', trim ( $string ) ) ) ) ); } ?> Better Sort

Better Sort