diff --git a/hub/services/views/pricelist.py b/hub/services/views/pricelist.py index 6e89f97..4d12ee1 100644 --- a/hub/services/views/pricelist.py +++ b/hub/services/views/pricelist.py @@ -144,6 +144,15 @@ def pricelist(request): .prefetch_related("prices") .order_by("group__order", "group__name", "cloud_provider__name", "name") ) + # Restore natural sorting of compute plan names + compute_plans = sorted( + compute_plans, + key=lambda p: ( + p.group.order if p.group else 999, + p.group.name if p.group else "ZZZ", + natural_sort_key(p.name), + ), + ) # Fetch all appcat price configurations (prefetch addons) appcat_prices_qs = (