Sort units by their identifier.