[NRY] Fixes Array Sort functionality

See https://github.com/tessel/runtime/issues/470