Revision c5ecf722
Added by Renato Botelho over 9 years ago
src/etc/inc/pkg-utils.inc | ||
---|---|---|
456 | 456 |
unset($pkg_info); |
457 | 457 |
} |
458 | 458 |
|
459 |
/* Sort result alphabetically */ |
|
460 |
usort($result, function($a, $b) { |
|
461 |
return(strcasecmp ($a['name'], $b['name'])); |
|
462 |
}); |
|
463 |
|
|
459 | 464 |
return $result; |
460 | 465 |
} |
461 | 466 |
|
Also available in: Unified diff
Sort return of get_pkg_info()