Saulis / iron-data-table

iron-data-table is a Web Component for displaying data as a table or grid. Built on top of iron-list using Polymer.
Apache License 2.0
147 stars 66 forks source link

Sorting seems not to work with dataSource #113

Closed web-padawan closed 8 years ago

web-padawan commented 8 years ago

When I use dataSoure instead of items, sorting is not performed. Don't have enough time to investigate right now, but sort-direction-changed event is fired and sortOrder property is updated. I will try to provide a demo later, maybe just using existing dataSource demo.

Saulis commented 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.

web-padawan commented 8 years ago

I see. Would it be enough just to grab some corresponding code from arraydatasource.js and modify that function?

Saulis commented 8 years ago

Sure if you want to do the sorting client side.