railo.runtime.type.Query qry=new QueryImpl(
new String[]{"entry","type","value"},
new String[]{"VARCHAR","VARCHAR","OTHER"},
entries.length,"query");
for(int i=0;i<entries.length;i++) {
RegistryEntry e = entries[i];
int row=i+1;
qry.setAt(KeyConstants._entry,row,e.getKey());
qry.setAt(KeyConstants._type,row,RegistryEntry.toCFStringType(e.getType()));
qry.setAt(KeyConstants._value,row,e.getValue());
}
// sort
if(sort!=null) {