sort indices alphabetically