symphonists / uniondatasource

A union datasources allows you to combine multiple datasources to output a single datasource for the primary purpose of a unified pagination.
13 stars 11 forks source link

Sorting included Data Sources? #16

Closed nilshoerrmann closed 12 years ago

nilshoerrmann commented 12 years ago

Is there a reason why included Data Sources are sortable? (It's explicitly set in the JavaScript file.)

nilshoerrmann commented 12 years ago

To clarify: I'm talking about ordering the Duplicator instances not about having the XML output sorted.

brendo commented 12 years ago

Hm, I actually can't remember. I think it's so you can change the sorting direction as the sort information is read from the first datasource. So if you have two datasources that both filter on date, but the first is asc and the second is desc, it will take the information from the first.

I think this also means that potentially all three datasources in the union can have different sorting set on the datasources, but the first will override the other two in the context of UD.

nilshoerrmann commented 12 years ago

Right, okay, that makes sense.