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

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

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

Sorts a list of semantic versions in ascending order.

Parameters

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

Returns

(SemVer | string)[]