compare($b['boost-version']); } static function cmp_description($a,$b) { return strcmp($a['description'],$b['description']); } static function cmp_documentation($a,$b) { return strcmp($a['documentation'],$b['documentation']); } static function cmp_guid($a,$b) { return strcmp($a['guid'],$b['guid']); } static function cmp_key($a,$b) { return strcmp($a['key'],$b['key']); } static function cmp_less($i,$j) { return ($i == $j) ? 0 : ($i !== FALSE && ($j === FALSE || $i < $j) ? -1 : 1); } static function cmp_name($a,$b) { return strcasecmp($a['name'],$b['name']); } static function cmp_pubdate($a,$b) { return cmp_less($b['pubdate'],$a['pubdate']); } static function cmp_title($a,$b) { return strcmp($a['title'],$b['title']); } static function cmp_cxxstd($a,$b) { if (empty($a['cxxstd'])) { return empty($b['cxxstd']) ? self::cmp_name($a, $b) : 1; } else if (empty($b['cxxstd'])) { return -1; } else { return self::cmp(strcmp($a['cxxstd'], $b['cxxstd']), $a, $b); } } }