public int getorder(int[] nums1,int m,int[] nums2,int n){
		int order = 0;
		if(nums1[0]>nums1[m-1]){
			order = -1;//desc
		}else if(nums1[0]==nums1[m-1]){
			if(nums2[0]>nums2[m-1]){
				order = -1;//desc
			}else if(nums1[0]==nums1[m-1]){
				order = 0;//all same
			}else{
				order = 1;
			}
		}else{
			order = 1;//asc
		}

		return order;
	}