I can sort dataframe by column like this:
df.sort(columns='sort_index', inplace=True)
And I can sort array with ignoring prefixes like this:
array.sort(key=lambda element: re.sub(re, "", element))
But how to sort dataframe with ignoring prefixes?