u8aSorted function

List<Uint8List> u8aSorted(
  1. List<Uint8List> u8as
)

Implementation

List<Uint8List> u8aSorted(List<Uint8List> u8as) {
  u8as.sort((a, b) {
    int i = 0;
    while (true) {
      final cmp = a[i] - b[i];
      if (cmp != 0) {
        return cmp;
      }
      i++;
    }
  });
  return u8as;
}