writeln("import { Array } from \"lib/Array.cms\";"); writeln(""); writeln("order = new Array();"); for (y = 1; y <= Bottom; y++) { writeln("order.push(\"" + [1,y].replace("\"", "\\\"") + "\");"); } writeln(""); writeln("InsertCol(1);"); writeln("for (y = 1; y <= Bottom; y++) {"); writeln(" [1,y] = order.indexOf([2,y]);"); writeln("}"); writeln("Sort(1, 1, Right, Bottom, 1, false, true, false, false);"); writeln("DeleteCol(1);");