jsonSortedEncode function
Converts object
to a JSON string with its keys sorted.
For more info, see jsonEncode.
Implementation
String jsonSortedEncode(Object? object,
{Object? Function(Object? nonEncodable)? toEncodable}) =>
jsonEncode(sortedCopy(object), toEncodable: toEncodable);