Hi Steven,

The exact details of the sort order are up to you. SortableDataProvider doesn't actually do any sorting, it only provides the sort state methods to manage the *desired* sort order. You must still return the items in the correct order when the iterator() method is called.

Cheers,
Jesse


On 12/11/2012 07:22, steven.li wrote:
Hi all

what's the default sort order of SortableDataProvider ? such as , I have
column A,B,C, and I call

setSort("C", SortOrder.descending), then how it will return results if 10
rows with the same value C ?

that means, how to compare between column A and column B, which I didn't
specify in the setSort statement.

I asked this because I got two different result in paging view and
downloaded excel file, the paging view is based on SortableDataProvider, and
downloaded excel file is based on pure sql, which append "order by" at the
end of the sql.


thanks.



-----
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SortableDataProvider-setSort-default-sort-order-tp4653782.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to