ArraySort execution throws ERR_NOT_INITIALIZED_STRING