Skip to main content
Module

std/semver/sort.ts>sort

Deno standard library
Go to Latest
function sort
import { sort } from "https://deno.land/std@0.192.0/semver/sort.ts";

Sorts a list of semantic versions in ascending order.

Parameters

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

Returns

(SemVer | string)[]