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

Breadcrumb

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

function Semver::sort

Sort given array of versions.

Parameters

string[] $versions:

Return value

string[]

2 calls to Semver::sort()
ProjectCoreCompatibility::getPossibleCoreUpdateVersions in core/modules/update/src/ProjectCoreCompatibility.php
Gets the core versions that should be considered for compatibility ranges.
VersionParser::isUpgrade in vendor/composer/composer/src/Composer/Package/Version/VersionParser.php

File

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

Class

Semver

Namespace

Composer\Semver

Code

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

API Navigation

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