Automation Exception while using the order by clause with the query filter

Discussion created by pavan534534 on Jun 11, 2013
Latest reply on Jun 11, 2013 by Neil

Can any one please help me in resolving the issue with the query filter which I am getting when trying the query with order by clause.
BTW, I am working using the ArcObjects API for Java.

I am getting the following Automation Exception: Item Not Found in this Collection.

I am using the query to the queryfilter  like as follows.

String query = ST_ID in (234,456) order by ST_ID asc

IQueryFilter  queryFilter = new QueryFilter();

I am getting the above mentioned AutomationException.Can anyone please help me in resolving the issue?
Actually I do have a doubt like does the order by clause is supported in ArcObjects?

Thanks in Advance.