sort method

void sort ([int compare(E a, E b) ])

Implementation

void sort([int compare(E a, E b)]) {
  // Note: arr.sort(null) is a type error in FF
  callMethod('sort', compare == null ? [] : [compare]);
}