SLING-4881 NoSQL Generic Resource Provider: Preserve order of changed resources (patch contributed by Levente Santha)