Skip to main content
Module

std/semver/mod.ts>sort

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

Sorts a list of semantic versions in ascending order.

Parameters

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

Returns

(SemVer | string)[]