cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/lists/VmList.java
public static void sortByCpuUtilization(final List<? extends Vm> vmList, final double simulationTime) {
        Comparator<Vm> comparator =
            Comparator.comparingDouble(vm -> vm.getTotalCpuMipsUsage(simulationTime));
        vmList.sort(comparator.reversed());
    }
/**
     * Sort a given list of VMs by descending order of CPU utilization.
     *
     * @param vmList the vm list to be sorted
     * @param simulationTime the simulation time to get the current CPU utilization for each Vm
     */
Sort a given list of VMs by descending order of CPU utilization.
@param vmList the vm list to be sorted
@param simulationTime the simulation time to get the current CPU utilization for each Vm
Sort a given list of VMs by descending order of CPU utilization . @param vmList the vm list to be sorted @param simulationTime the simulation time to get the current CPU utilization for each Vm
public static void sortByCpuUtilization(final List<? extends Vm> vmList, final double simulationTime) {
        Comparator<Vm> comparator =
            Comparator.comparingDouble(vm -> vm.getTotalCpuMipsUsage(simulationTime));
        vmList.sort(comparator.reversed());
    }
public static void sortByCpuUtilization ( final List < ? extends Vm > vmList , final double simulationTime ) { Comparator < Vm > comparator = Comparator . comparingDouble ( vm -> vm . getTotalCpuMipsUsage ( simulationTime ) ) ; vmList . sort ( comparator . reversed ( ) ) ; }
Sort a given list of VMs by descending order of CPU utilization.
Sort a given list of VMs by descending order of CPU utilization .