Added sorting based on sum or label - alphabetical ascending