Added sub-array sorting test case