/**
 * Sort words in string ascending.
 *
 * @return self Returns instance of The Strings class.
 */
public function wordsSortAsc(): self

Examples

$string = Strings::create('car fòô bàřs apple')->wordsSortAsc();

echo $string;

The above example will output:

apple bàřs car fòô

Getting Started

Methods