js sort char code example
Example 1: javascript sort chars in string
const sort = str => str.split('').sort((a, b) => a.localeCompare(b)).join('');
// Example
sort('hello world'); // dehllloorw
Example 2: js convert order to char
String.fromCharCode(65,66,67); // returns 'ABC'