title: Using TArray class functions
body: <p>I need to sort a <code>TArray&lt;integer&gt;</code>, I've added <code>System.Generics.Collections</code> to the <code>uses</code> clause and then I've tried the following code:</p>
  
  <pre><code>var
    Arr : TArray&lt;integer&gt;;
  begin
    SetLength(Arr, 2);
    Arr[0] := 5;
    Arr[1] := 3;
  
    TArray.Sort(Arr);
  
    ShowMessage(IntToStr(Arr[0]));
  end;
  </code></pre>
  
  <p>On compiling it produces an <em>E2250</em> error saying:</p>
  
  <blockquote>
    <p>[dcc32 Error] Unit1.pas(39): E2250 There is no overloaded version of
    'Sort' that can be called with these arguments</p>
  </blockquote>