sortedString function

String sortedString(
  1. String s
)

Sort string by character codes.

Implementation

String sortedString(String s) {
  List<int> chars = List.from(s.codeUnits);
  chars.sort();
  return String.fromCharCodes(chars);
}