Horje
javascript sort chars in string Code Example
javascript sort chars in string
const sort = str => str.split('').sort((a, b) => a.localeCompare(b)).join('');

// Example
sort('hello world');    // dehllloorw




Javascript

Related
run react native app in production mode Code Example run react native app in production mode Code Example
javascript is number an integer Code Example javascript is number an integer Code Example
js check string contain Code Example js check string contain Code Example
dockerignore node modules Code Example dockerignore node modules Code Example
js convert nodelist to array Code Example js convert nodelist to array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8