SelectiveSync:  sort the item instead of using the order from the server

Task #2259