This question appears to have done the rounds with most answers being about buying an addon or creating a script.
I've noted that in JQL you can ORDER BY labels and this will alphabetise one way or the other. However I need to sort by the number labels either as a count or by sorting the results.