in_memory: Fix snapshot_get_branches regression with target_types
When providing target_types parameter, snapshot branches must be sorted when iterating otherwise wrong branches can be returned.
Migrated from D3500 (view on Phabricator)
When providing target_types parameter, snapshot branches must be sorted when iterating otherwise wrong branches can be returned.
Migrated from D3500 (view on Phabricator)