Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav2001 committed Jan 2, 2024
1 parent 6d9d320 commit 41236c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sky/clouds/service_catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 41236c1

Please sign in to comment.