// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.importtype{SemVer}from"./types.ts";import{ compare }from"./compare.ts"; /** * A reverse comparison of two versions. Same as compare but * `1` and `-1` are inverted. * * Sorts in descending order if passed to `Array.sort()`, */exportfunctionrcompare( s0:SemVer, s1:SemVer,):1|0|-1{returncompare(s1, s0);}