Sort nodes by name