You are here

public static function Semver::rsort in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/semver/src/Semver.php \Composer\Semver\Semver::rsort()

Sort given array of versions in reverse.

Parameters

array $versions:

Return value

array

File

vendor/composer/semver/src/Semver.php, line 81

Class

Semver

Namespace

Composer\Semver

Code

public static function rsort(array $versions) {
  return self::usort($versions, self::SORT_DESC);
}