Compare and sort Ksuids
mainKsuids are K-sorted, meaning they can be compared using standard Python comparison operators (<, <=, >, >=, ==). Comparison is based on the timestamp component, allowing you to sort them chronologically.
from ksuid import Ksuid
k1 = Ksuid()
k2 = Ksuid()
# Comparison works based on creation time
print(k1 < k2)
print(k1 == k2)