Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Borrow the sort function from array
- private static native function _sort(o, args:Array);
- prototype.sort = function(comparefn){
- var a : Array = [comparefn];
- return _sort(castToThisType(this), a);
- }
Add Comment
Please, Sign In to add comment