MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / nameSorter

Method nameSorter

service/ammo.py:197–199  ·  view source on GitHub ↗
(charge)

Source from the content-addressed store, hash-verified

195 else:
196
197 def nameSorter(charge):
198 parts = charge.name.split(" ")
199 return [int(p) if p.isdigit() else p for p in parts]
200
201 return 'general', {'general': sorted(chargesFlat, key=nameSorter)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected