Sort out labels