Implement alphabet sorting for labels

@tadatuta @tavriaforever