Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
#1221 Sorting lock file lists
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy committed Jul 1, 2015
1 parent 1a3f78f commit 526e522
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private JProperty WriteLibrary(LockFileLibrary library)
WriteBool(json, "serviceable", library.IsServiceable);
}
json["sha512"] = WriteString(library.Sha512);
WritePathArray(json, "files", library.Files, WriteString);
WritePathArray(json, "files", library.Files.OrderBy(f => f), WriteString);
return new JProperty(
library.Name + "/" + library.Version.ToString(),
json);
Expand Down Expand Up @@ -216,12 +216,12 @@ private JProperty WriteTargetLibrary(LockFileTargetLibrary library)

if (library.Dependencies.Count > 0)
{
json["dependencies"] = WriteObject(library.Dependencies, WritePackageDependency);
json["dependencies"] = WriteObject(library.Dependencies.OrderBy(p => p.Id), WritePackageDependency);
}

if (library.FrameworkAssemblies.Count > 0)
{
json["frameworkAssemblies"] = WriteArray(library.FrameworkAssemblies, WriteFrameworkAssemblyReference);
json["frameworkAssemblies"] = WriteArray(library.FrameworkAssemblies.OrderBy(f => f), WriteFrameworkAssemblyReference);
}

if (library.CompileTimeAssemblies.Count > 0)
Expand Down

0 comments on commit 526e522

Please sign in to comment.