allow sort custom queries in extended mode