From 41236c1b88c344320ab2256a93a1fe0b82564036 Mon Sep 17 00:00:00 2001 From: Vaibhav Agrawal Date: Tue, 2 Jan 2024 22:39:12 +0530 Subject: [PATCH] Minor update --- sky/clouds/service_catalog/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sky/clouds/service_catalog/common.py b/sky/clouds/service_catalog/common.py index 01b53b44cc5..36364d16f04 100644 --- a/sky/clouds/service_catalog/common.py +++ b/sky/clouds/service_catalog/common.py @@ -530,9 +530,8 @@ def make_list_from_df(rows): ), axis='columns', ).tolist() - ret.sort(key=lambda info: (info.accelerator_count, info.cpu_count, info. - price, info.spot_price - if info.cpu_count is not None else 0)) + ret.sort(key=lambda info: + (info.accelerator_count, info.price, info.spot_price)) return ret return {k: make_list_from_df(v) for k, v in grouped}