I find the channel documents always sync from the earliest to the newest. But in my app, I want to sync documents from the newest to earliest. Is there any method to do this, or can I modify the channel view in the production views to implement this?
Replication occurs in sequence order (which is generally oldest to newest). There isn’t a way to reverse that - replication depends on using the last sequence value replicated to identify where to resume from at the next replication.
I find channel is a good design and the sync gateway help me a lot, but when the app’s business logical become complex, I should go back to web service model to sovle our business requirement.