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

std/semver/mod.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.195.0/semver/mod.ts";

Sorts a list of semantic versions in descending order.

Parameters

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

Returns

(SemVer | string)[]