#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
int main() {
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
ll a[n];
multiset<ll> s;
for(int i=0;i<n;i++) {cin>>a[i];s.insert(a[i]);}
vector<vector<int>> ans(2);
int flag[2];
flag[0]=1,flag[1]=1;
//flag[0]
ll e=*s.begin();
s.erase(s.find(e));
ans[0].pb(e);
int b=1;
while(!s.empty() && flag[0]==1)
{
ll val=-1;
if(b==1) {auto e1=prev(s.end()); if(*e1>e) val=*e1;else {flag[0]=0;continue;}}
else { auto e1=s.begin(); if(*e1<e) val=*e1;else {flag[0]=0;continue;} }
// cout<<val<<" "<<b<<endl;
s.erase(s.find(val));
ans[0].pb(val);
e=val;
b=1-b;
}
s.clear();
for(int i=0;i<n;i++) s.insert(a[i]);
e=*s.rbegin();
s.erase(s.find(e));
ans[1].pb(e);
b=0;
while(!s.empty() && flag[1]==1)
{
ll val=-1;
if(b==1) {auto e1=prev(s.end()); if(*e1>e) val=*e1;else {flag[1]=0;continue;}}
else { auto e1=s.begin(); if(*e1<e) val=*e1;else {flag[1]=0;continue;} }
// cout<<val<<" "<<b<<endl;
s.erase(s.find(val));
ans[1].pb(val);
e=val;
b=1-b;
}
if(flag[0]==1) {for(int i=0;i<ans[0].size();i++) cout<<ans[0][i]<<" ";}
else
{
if(flag[1]==1) {for(int i=0;i<ans[1].size();i++) cout<<ans[1][i]<<" ";}
else cout<<-1;
}
cout<<endl;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgbGwgbG9uZyBsb25nCgppbnQgbWFpbigpIHsKCWludCB0OwoJY2luPj50OwoJCgkKCXdoaWxlKHQtLSkKCXsKCSAgICBpbnQgbjsKCSAgICBjaW4+Pm47CiAgICAgICAgbGwgYVtuXTsKICAgICAgICBtdWx0aXNldDxsbD4gczsKCiAgICAgICAgZm9yKGludCBpPTA7aTxuO2krKykge2Npbj4+YVtpXTtzLmluc2VydChhW2ldKTt9CiAgICAgICAgCiAgICAgICAgCiAgICAgICAgdmVjdG9yPHZlY3RvcjxpbnQ+PiBhbnMoMik7CgogICAgICAgIGludCBmbGFnWzJdOwogICAgICAgIGZsYWdbMF09MSxmbGFnWzFdPTE7CgogICAgICAgIC8vZmxhZ1swXQogICAgICAgIGxsIGU9KnMuYmVnaW4oKTsKICAgICAgICBzLmVyYXNlKHMuZmluZChlKSk7CiAgICAgICAgYW5zWzBdLnBiKGUpOwogICAgICAgIGludCBiPTE7CgogICAgICAgIHdoaWxlKCFzLmVtcHR5KCkgJiYgZmxhZ1swXT09MSkKICAgICAgICB7ICAgIAogICAgICAgICAgICAgbGwgdmFsPS0xOwogICAgICAgICAgICAgaWYoYj09MSkge2F1dG8gZTE9cHJldihzLmVuZCgpKTsgIGlmKCplMT5lKSB2YWw9KmUxO2Vsc2Uge2ZsYWdbMF09MDtjb250aW51ZTt9fQogICAgICAgICAgICAgZWxzZSB7IGF1dG8gZTE9cy5iZWdpbigpOyBpZigqZTE8ZSkgdmFsPSplMTtlbHNlIHtmbGFnWzBdPTA7Y29udGludWU7fSB9ICAKICAgICAgICAgICAgCiAgICAgICAgICAgIAogICAgICAgICAgICAvLyBjb3V0PDx2YWw8PCIgIjw8Yjw8ZW5kbDsKICAgICAgICAgICAgcy5lcmFzZShzLmZpbmQodmFsKSk7CiAgICAgICAgICAgIGFuc1swXS5wYih2YWwpOwogICAgICAgICAgICBlPXZhbDsKICAgICAgICAgICAgYj0xLWI7CiAgICAgICAgfQoKICAgICAgICBzLmNsZWFyKCk7CiAgICAgICAgZm9yKGludCBpPTA7aTxuO2krKykgcy5pbnNlcnQoYVtpXSk7CiAgICAgICAgZT0qcy5yYmVnaW4oKTsKICAgICAgICBzLmVyYXNlKHMuZmluZChlKSk7CiAgICAgICAgYW5zWzFdLnBiKGUpOwogICAgICAgIGI9MDsKCiAgICAgICAgd2hpbGUoIXMuZW1wdHkoKSAmJiBmbGFnWzFdPT0xKQogICAgICAgIHsgICAgCiAgICAgICAgICAgICBsbCB2YWw9LTE7CiAgICAgICAgICAgICBpZihiPT0xKSB7YXV0byBlMT1wcmV2KHMuZW5kKCkpOyAgaWYoKmUxPmUpIHZhbD0qZTE7ZWxzZSB7ZmxhZ1sxXT0wO2NvbnRpbnVlO319CiAgICAgICAgICAgICBlbHNlIHsgYXV0byBlMT1zLmJlZ2luKCk7IGlmKCplMTxlKSB2YWw9KmUxO2Vsc2Uge2ZsYWdbMV09MDtjb250aW51ZTt9IH0gIAogICAgICAgICAgICAKICAgICAgICAgICAgCiAgICAgICAgICAgIC8vIGNvdXQ8PHZhbDw8IiAiPDxiPDxlbmRsOwogICAgICAgICAgICBzLmVyYXNlKHMuZmluZCh2YWwpKTsKICAgICAgICAgICAgYW5zWzFdLnBiKHZhbCk7CiAgICAgICAgICAgIGU9dmFsOwogICAgICAgICAgICBiPTEtYjsKICAgICAgICB9CgoKICAgICAgICBpZihmbGFnWzBdPT0xKSB7Zm9yKGludCBpPTA7aTxhbnNbMF0uc2l6ZSgpO2krKykgY291dDw8YW5zWzBdW2ldPDwiICI7fQogICAgICAgIGVsc2UKICAgICAgICB7CiAgICAgICAgICAgIGlmKGZsYWdbMV09PTEpIHtmb3IoaW50IGk9MDtpPGFuc1sxXS5zaXplKCk7aSsrKSBjb3V0PDxhbnNbMV1baV08PCIgIjt9CiAgICAgICAgICAgIGVsc2UgY291dDw8LTE7CiAgICAgICAgfQogICAgICAgIGNvdXQ8PGVuZGw7CgogICAgICAgIAoKCgoKCX0KCXJldHVybiAwOwp9Cg==