custom qry order fix