Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/semver/mod.ts>reverseSort

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function reverseSort
Deprecated
Deprecated

(will be removed in 0.217.0) Use versions.sort((a, b) => compare(b, a)) instead.

import { reverseSort } from "https://deno.land/std@0.216.0/semver/mod.ts";

Sorts a list of semantic versions in descending order.

Parameters

versions: SemVer[]