MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / sz_cmp

Function sz_cmp

scripts/test_stringzilla.py:1180–1186  ·  view source on GitHub ↗
(a: str, b: str)

Source from the content-addressed store, hash-verified

1178 return -1 if a < b else (1 if a > b else 0)
1179
1180 def sz_cmp(a: str, b: str) -> int:
1181 sa, sb = Str(a), Str(b)
1182 if sa < sb:
1183 return -1
1184 if sa > sb:
1185 return 1
1186 return 0
1187
1188 # Check every consecutive pair a[i], a[i+1]
1189 for i in range(len(native_list) - 1):

Callers 1

test_fuzzy_sortingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…