MCPcopy Create free account
hub / github.com/R-js/libRmath.js / sortOnStringLengthDescending

Function sortOnStringLengthDescending

scripts/helpers.mjs:33–35  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

31}
32
33function sortOnStringLengthDescending(a, b){
34 return b.length - a.length;
35}
36
37export function rankPaths(paths) {
38 // search for paths with no '*'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected