diff --git a/.github/workflows/new-device.yml b/.github/workflows/new-device.yml index db212e965..acee89825 100644 --- a/.github/workflows/new-device.yml +++ b/.github/workflows/new-device.yml @@ -58,7 +58,7 @@ jobs: devices.append(new_device) # Sort the devices by manufacturer and model - devices = sorted(devices, key=lambda k: cmp(k['manufacturer'], k['model'])) + devices = sorted(devices, key=lambda k: (k['manufacturer'], k['model'])) # Save manufacturer and model for later use set_output("mm", "_".join(re.findall(r"\w+",f"{new_device['manufacturer']}{new_device['model']})".lower())))