From: Kal A. <ka...@te...> - 2006-05-29 11:39:19
|
Hi Dandan, The default sorting algorithm is not exactly clever - if you sort a variable that binds to TopicMapObjects (like $TYPE binds to Topics in your query), then the sort order is by the ID property of the topics. Are you seeing the results at least grouped together by type (even if the types are not necessarily in the order you expect) ? Or are you seeing them all mixed up ? Cheers Kal Wang, Dandan wrote: > Hi All, > > I am working on the Tolog Query implementation. My problem is, > the returned tolog resultsets can not be sorted , even if I use the > "order by" clause. > for example: > query = "select $TYPE, $VALUE from occurrence(topicID, $OCC),type($OCC, > $TYPE), value($OCC, $VALUE) order by $TYPE ?"; > > for this query, the returned tologResultSets showing in a JTable will > not be ordered by ascending $TYPE. > > I also did some similar experiments in the TMNav, seems it has the same > problem. > > I would appreciate if anybody could give me some hints.. > > > Dandan > |