try to sort Array by using method Array.sort(), but build met error as:

type error [M0072], field sort does not exist in type

*module {
append : *

*([A], [A]) → [A];*

chain : <A, B>([A], A → [B]) → [B];

equal : ([A], [A], (A, A) → Bool) → Bool;

filter : ([A], A → Bool) → [A];

find : ([A], A → Bool) → ?A;

flatten : ([[A]]) → [A];

foldLeft : <A, B>([A], B, (B, A) → B) → B;

foldRight : <A, B>([A], B, (A, B) → B) → B;

freeze : ([var A]) → [A];

init : (Nat, A) → [var A];

keys : ([A]) → Iter;

make : (A) → [A];

map : <A, B>([A], A → B) → [B];

mapEntries : <A, B>([A], (A, Nat) → B) → [B];

mapFilter : <A, B>([A], A → ?B) → [B];

mapResult : <A, R, E>([A], A → Result<R, E>) → Result<[R], E>;

tabulate : (Nat, Nat → A) → [A];

tabulateVar : (Nat, Nat → A) → [var A];

thaw : ([A]) → [var A];

vals : ([A]) → Iter:

}

chain : <A, B>([A], A → [B]) → [B];

equal : ([A], [A], (A, A) → Bool) → Bool;

filter : ([A], A → Bool) → [A];

find : ([A], A → Bool) → ?A;

flatten : ([[A]]) → [A];

foldLeft : <A, B>([A], B, (B, A) → B) → B;

foldRight : <A, B>([A], B, (A, B) → B) → B;

freeze : ([var A]) → [A];

init : (Nat, A) → [var A];

keys : ([A]) → Iter;

make : (A) → [A];

map : <A, B>([A], A → B) → [B];

mapEntries : <A, B>([A], (A, Nat) → B) → [B];

mapFilter : <A, B>([A], A → ?B) → [B];

mapResult : <A, R, E>([A], A → Result<R, E>) → Result<[R], E>;

tabulate : (Nat, Nat → A) → [A];

tabulateVar : (Nat, Nat → A) → [var A];

thaw : ([A]) → [var A];

vals : ([A]) → Iter:

}

seems sort() is not a function for array, but it is mentioned in motoko library