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

Function ToTag

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

Source from the content-addressed store, hash-verified

2171}
2172//正序
2173function ToTag(elem1, elem2) {
2174 var tag1 = elem1.split("tag")[1].split("=")[1].trim()
2175 var tag2 = elem2.split("tag")[1].split("=")[1].trim()
2176 res = tag1 > tag2 ? 1 : -1
2177 return res
2178}
2179//逆序
2180function ToTagR(elem1, elem2) {
2181 var tag1 = elem1.split("tag")[1].split("=")[1].trim()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected