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

std/semver/rsort.ts>rsort

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function rsort
import { rsort } from "https://deno.land/std@0.199.0/semver/rsort.ts";

Sorts a list of semantic versions in descending order.

Parameters

list: (string | SemVer)[]
optional
options: { includePrerelease: boolean; }

Returns

(SemVer | string)[]