Soring a fixed array

Why array methods are not working on fixed arrays?

int array[5] = '{10,1,2,3,4};

initial begin
array.sort();
$display(“sorted fixed”,array);
end

In reply to rakesh reddy:

Works fine in Questasim:


module test;

int array[5] = '{10,1,2,3,4};

initial begin
array.sort();
$display("sorted fixed: %d %d %d %d %d", array[0], array[1], array[2], array[3], array[4]);
end

endmodule

Loading sv_std.std

Loading work.test(fast)

run -all

sorted fixed: 1 2 3 4 10

quit -f

End time: 08:47:00 on Oct 24,2016, Elapsed time: 0:00:01

Errors: 0, Warnings: 0

Sounds like a tool error that you will need to take up with your vendor support team.