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

x/fresh/src/dev/deps.ts>semver.rsort

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.rsort
import { semver } from "https://deno.land/x/fresh@1.4.0/src/dev/deps.ts";
const { rsort } = semver;

Sorts a list of semantic versions in descending order.

Parameters

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

Returns

(SemVer | string)[]