Improving compareNodePriorityThenNameThenInstance to order "2" before "10" when sorting nodes by name then instance