Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 915d29d

Browse files
committed
removing sort function that's no longer needed
1 parent aff3daf commit 915d29d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

core/lib/PatternLab/Builder.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ protected function generateMainPages() {
206206
}
207207
}
208208

209-
// sort partials by patternLink
210-
usort($sd['partials'], "PatternLab\Builder::sortPartials");
211-
212209
// render the "view all" pages
213210
$this->generateViewAllPages();
214211

@@ -1134,17 +1131,6 @@ public function trim(&$v) {
11341131
$v = trim($v);
11351132
}
11361133

1137-
/**
1138-
* Sort the partials generated for the styleguide so that any new ones show up in the correct place
1139-
* @param {Array} items from from one pattern to compare
1140-
* @param {Array} items from another pattern to compare
1141-
*
1142-
* @return {Integer} the result of the string comparison
1143-
*/
1144-
public function sortPartials($a,$b) {
1145-
return strcmp($a["patternLink"],$b["patternLink"]);
1146-
}
1147-
11481134
/**
11491135
* Lowercase the given string. Used in the array_walk() function in __construct as a sanity check
11501136
* @param {String} an entry from one of the list-based config entries

0 commit comments

Comments
 (0)