Skip to content

Instantly share code, notes, and snippets.

@boustrophedon
Created April 10, 2014 22:14
Show Gist options
  • Save boustrophedon/10428231 to your computer and use it in GitHub Desktop.
Save boustrophedon/10428231 to your computer and use it in GitHub Desktop.
dart vs js. the most important test
// dart version
void main() {
List<int> l = [1,10,5];
l.sort();
print(l); // [1, 5, 10]
}
// js version
var l = [1, 10, 5];
l.sort();
console.log(l); // [ 1, 10, 5 ] (it is sorted lexicographically)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment