// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.importtype{SemVer}from"./types.ts";import{ compare }from"./compare.ts"; /** * Sorts a list of semantic versions in descending order. * @deprecated (will be removed in 0.219.0) Use `versions.sort((a, b) => compare(b, a))` instead. */exportfunctionreverseSort( versions:SemVer[],):SemVer[]{return versions.sort((a, b)=>compare(b, a));}