sort() public method

The sorting is done first by numbers, then by characters. Internally natsort() is used as it most closely resembles javascript's sort(). Because there are no real associative arrays in Javascript, keys of the array will be preserved.
public sort ( array $array ) : array
$array array
return array The sorted array
 /**
  * @test
  * @dataProvider sortExamples
  */
 public function sortWorks($array, $expected)
 {
     $helper = new ArrayHelper();
     $sortedArray = $helper->sort($array);
     $this->assertEquals($expected, $sortedArray);
 }