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

std/semver/sort.ts>sort

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function sort
import { sort } from "https://deno.land/std@0.199.0/semver/sort.ts";

Sorts a list of semantic versions in ascending order.

Parameters

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

Returns

(SemVer | string)[]