obspy.core.inventory.util._seed_id_keyfunction

_seed_id_keyfunction(x)[source]

Keyfunction to use in sorting two (partial) SEED IDs

Assumes that the last (or only) “.”-separated part is a channel code. Assumes the last character is a the component code and sorts it “Z”-“N”-“E”-others_lexical.