michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Closures are admitted michael@0: * michael@0: * @path ch13/13.2/S13.2.1_A5_T1.js michael@0: * @description Sorting with closure michael@0: */ michael@0: michael@0: var __arr = [4,3,2,1,4,3,2,1,4,3,2,1]; michael@0: //Sort uses closure michael@0: // michael@0: __arr.sort( michael@0: function(x,y) { michael@0: if (x>y){return -1;} michael@0: if (x