playmoweb / store2realm

Synchronize Realm with another Store. Realm Implementation for store2store library
MIT License
11 stars 6 forks source link

Allow sortingMode to be an array #6

Closed tspoke closed 7 years ago

tspoke commented 7 years ago

The example hardcode the filtering and the sorting but this code should be in the backend server, not in the service.

Fix #4

Usage :

new SortingMode("key", sortMode).and("key2", sortMode)...

// or static builder
SortingMode.with("key", sortMode).and(...)

// or arrays of keys and values
new SortingMode(keys, sortModes); // two arrays same dimension

// or array of keys
new SortingMode(keys, sortMode); // array and one sortMode (will apply to all keys)