mirror of
https://github.com/correl/melpa.git
synced 2024-11-25 11:09:50 +00:00
Sort dependency lists by name
This commit is contained in:
parent
8f6c3b37ff
commit
d85852b66c
1 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@
|
||||||
if (!p) return;
|
if (!p) return;
|
||||||
this.package(p);
|
this.package(p);
|
||||||
this.downloadsPercentile(packageList.downloadsPercentileForPackage(p));
|
this.downloadsPercentile(packageList.downloadsPercentileForPackage(p));
|
||||||
this.neededBy(packageList.dependenciesOnPackageName(this.packageName));
|
this.neededBy(_.sortBy(packageList.dependenciesOnPackageName(this.packageName), 'name'));
|
||||||
this.packageWithName = packageList.packageWithName;
|
this.packageWithName = packageList.packageWithName;
|
||||||
m.request({method: "GET",
|
m.request({method: "GET",
|
||||||
url: p.readmeURL,
|
url: p.readmeURL,
|
||||||
|
@ -320,7 +320,7 @@
|
||||||
pkg.sourceURL ? m("a", {href: pkg.sourceURL}, pkg.source) : m("span", pkg.source)
|
pkg.sourceURL ? m("a", {href: pkg.sourceURL}, pkg.source) : m("span", pkg.source)
|
||||||
]),
|
]),
|
||||||
m("dt", "Dependencies"),
|
m("dt", "Dependencies"),
|
||||||
m("dd", intersperse(pkg.dependencies.map(this.depLink), " / ")),
|
m("dd", intersperse(_.sortBy(pkg.dependencies, 'name').map(this.depLink), " / ")),
|
||||||
m("dt", "Needed by"),
|
m("dt", "Needed by"),
|
||||||
m("dd", intersperse(ctrl.neededBy().map(this.reverseDepLink), " / ")),
|
m("dd", intersperse(ctrl.neededBy().map(this.reverseDepLink), " / ")),
|
||||||
pkg.oldNames.length > 0 ? [
|
pkg.oldNames.length > 0 ? [
|
||||||
|
|
Loading…
Reference in a new issue