Sort the UUIDs so that dom0 appears first