Better way of names sorting