Re-add summary to sort method

This commit is contained in:
Archangel
2025-08-05 04:15:56 +02:00
parent be289d590d
commit ffb7c72abc
@@ -4,6 +4,12 @@ namespace SPTarkov.Server.Core.Extensions;
public static class ProfileMigratorExtensions public static class ProfileMigratorExtensions
{ {
/// <summary>
/// Sorts the profile migrations in dependency order, ensuring that each migration appears
/// after all of its prerequisite migrations.
/// </summary>
/// <param name="profileMigrations">The collection of profile migrations to sort.</param>
/// <returns>A topologically sorted list of migrations.</returns>
public static IEnumerable<IProfileMigration> Sort(this IEnumerable<IProfileMigration> profileMigrations) public static IEnumerable<IProfileMigration> Sort(this IEnumerable<IProfileMigration> profileMigrations)
{ {
var sortedMigrations = new List<IProfileMigration>(); var sortedMigrations = new List<IProfileMigration>();