In reply to theelmtree:
Use the with() clause to select the criteria for sorting.
module top;
int myArray[][] = '{'{2, 3}, '{4,3}, '{1, 5}};
initial begin
myArray.sort() with (item[0]);
$display("%p",myArray);
end
endmodule
In reply to theelmtree:
Use the with() clause to select the criteria for sorting.
module top;
int myArray[][] = '{'{2, 3}, '{4,3}, '{1, 5}};
initial begin
myArray.sort() with (item[0]);
$display("%p",myArray);
end
endmodule