MCPcopy Create free account
hub / github.com/Moli-X/Resources / ToTagR

Function ToTagR

Script/Parser.js:2180–2185  ·  view source on GitHub ↗
(elem1, elem2)

Source from the content-addressed store, hash-verified

2178}
2179//逆序
2180function ToTagR(elem1, elem2) {
2181 var tag1 = elem1.split("tag")[1].split("=")[1].trim()
2182 var tag2 = elem2.split("tag")[1].split("=")[1].trim()
2183 res = tag1 > tag2 ? -1 : 1
2184 return res
2185}
2186// 随机洗牌排序
2187function shuffle(arr) {
2188 var input = arr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected