mirror of
https://github.com/pattern-lab/patternlab-php.git
synced 2025-03-15 19:39:42 +01:00
removing sort function that's no longer needed
This commit is contained in:
parent
aff3daf503
commit
915d29d364
@ -206,9 +206,6 @@ class Builder {
|
||||
}
|
||||
}
|
||||
|
||||
// sort partials by patternLink
|
||||
usort($sd['partials'], "PatternLab\Builder::sortPartials");
|
||||
|
||||
// render the "view all" pages
|
||||
$this->generateViewAllPages();
|
||||
|
||||
@ -1134,17 +1131,6 @@ class Builder {
|
||||
$v = trim($v);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort the partials generated for the styleguide so that any new ones show up in the correct place
|
||||
* @param {Array} items from from one pattern to compare
|
||||
* @param {Array} items from another pattern to compare
|
||||
*
|
||||
* @return {Integer} the result of the string comparison
|
||||
*/
|
||||
public function sortPartials($a,$b) {
|
||||
return strcmp($a["patternLink"],$b["patternLink"]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lowercase the given string. Used in the array_walk() function in __construct as a sanity check
|
||||
* @param {String} an entry from one of the list-based config entries
|
||||
|
Loading…
x
Reference in New Issue
Block a user