sort method

dynamic sort()

Implementation

sort() {
  sortTimer?.cancel();

  sortTimer = Timer(const Duration(seconds: 2), () {
    write('sorted', sorted.toString());
    sortTimer = null;
  });
}