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)
Staging instance, all changes can be removed at any time
When providing target_types parameter, snapshot branches must be sorted when iterating otherwise wrong branches can be returned.
Migrated from D3500 (view on Phabricator)