Adding sorting for repo list
Fix for looping in takeRemoteSnapshot
Fix the recursion, so takeRemoteSnapshot creates a collection in first step and then persists.