Fixing issue on array sorting. The problem was that array sorter should return an array of integer instead of array of short