function SortOnRadix(radix, data) {
		let buckets = [];
		
		data.forEach(item => {
			let key = item.charCodeAt(radix);
			let bucket = buckets[key] = buckets[key] || [];
			bucket.push(item);
		});

		return buckets.flat();
	}
/// a good choice is BucketSort or CountingSort
a good choice is BucketSort or CountingSort
a good choice is BucketSort or CountingSort
function SortOnRadix(radix, data) {
		let buckets = [];
		data.forEach(item => {
			let key = item.charCodeAt(radix);
			let bucket = buckets[key] = buckets[key] || [];
			bucket.push(item);
		});
		return buckets.flat();
	}
function SortOnRadix ( radix , data ) { let buckets = [ ] ; data . forEach ( item => { let key = item . charCodeAt ( radix ) ; let bucket = buckets [ key ] = buckets [ key ] || [ ] ; bucket . push ( item ) ; } ) ; return buckets . flat ( ) ; }
a good choice is BucketSort or CountingSort
a good choice is BucketSort or CountingSort