Fix sorting on labels with . or -