def text_to_sortable_long(text): #assert len(text) == 17 #return long(text[1:], 16) return from_base85(text[1:])
def text_to_sortable_long(text): # assert len(text) == 17 # return long(text[1:], 16) return from_base85(text[1:])
def text_to_sortable_int(text): #assert len(text) == 9 #return int(text[1:], 16) return from_base85(text[1:])
def text_to_sortable_int(text): # assert len(text) == 9 # return int(text[1:], 16) return from_base85(text[1:])