Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Semver.php

function Semver::rsort

Sort given array of versions in reverse.

Parameters

string[] $versions:

Return value

string[]

1 call to Semver::rsort()
ShowCommand::printVersions in vendor/composer/composer/src/Composer/Command/ShowCommand.php
Prints all available versions of this package and highlights the installed one if any.

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal