#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=2e5+5;
struct player{
	int id;
	ll v;
	bool operator<(player rhs)const{
		return v<rhs.v;
	}
}a[N];

int n;
ll sum[N];

vector<int>ans;
int main(){
	int t,i;scanf("%d",&t);
	while(t--){
		ans.clear();
		scanf("%d",&n);
		for(i=1;i<=n;++i){
			scanf("%lld",&a[i].v);
			a[i].id=i;
		}
		sort(a+1,a+n+1);
		for(i=1;i<=n;++i)sum[i]=sum[i-1]+a[i].v;
		//i��n��1����sum[i-1]��a[i]�Ĵ�С��ϵ  
		ans.push_back(a[n].id);
		for(i=n;i>=2;--i){
			if(sum[i-1]>=a[i].v)ans.push_back(a[i-1].id);
			else break;
		}
		sort(ans.begin(),ans.end());
		printf("%d\n",ans.size());for(i=0;i<ans.size();++i)printf("%d ",ans[i]);puts("");
	}
}
