Fixes #842

- Fixes Array >> sort
- Modified ArrayTest >> testSort