1
0
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:
Dave Olsen 2014-01-29 20:18:11 -05:00
parent aff3daf503
commit 915d29d364

View File

@ -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