Open Peetz0r opened 2 years ago
1.10.0 is sorted between 1.1.0 and 1.2.0, not after (or before, really) 1.9.0.
There's multiple potential fixes:
list.sort(key=lambda x: '{0:0>8}'.format(x).lower())
list.sort(key=lambda x: [int(c) if c.isdigit() else c for c in re.split(r'(\d+)', x)])
random.shuffle(list)
Probably somewhere around https://github.com/theironrobin/siglo/blob/main/src/quick_deploy.py#L51
1.10.0 is sorted between 1.1.0 and 1.2.0, not after (or before, really) 1.9.0.
There's multiple potential fixes:
list.sort(key=lambda x: '{0:0>8}'.format(x).lower())
list.sort(key=lambda x: [int(c) if c.isdigit() else c for c in re.split(r'(\d+)', x)])
random.shuffle(list)
but maybe only on april foolsProbably somewhere around https://github.com/theironrobin/siglo/blob/main/src/quick_deploy.py#L51