Closed web-padawan closed 8 years ago
Just making sure we're on the same page here: when using dataSource
, sorting and filtering is meant to be done inside that function. When setting an array to items
, actually a function is set as dataSource
which implements sorting and filtering in-memory.
I see. Would it be enough just to grab some corresponding code from arraydatasource.js
and modify that function?
Sure if you want to do the sorting client side.
When I use
dataSoure
instead ofitems
, sorting is not performed. Don't have enough time to investigate right now, butsort-direction-changed
event is fired andsortOrder
property is updated. I will try to provide a demo later, maybe just using existingdataSource
demo.