Split a string into text and integer parts for natural sorting.
(s: str)
| 29 | |
| 30 | |
| 31 | def _natsort_key(s: str) -> list: |
| 32 | """Split a string into text and integer parts for natural sorting.""" |
| 33 | import re |
| 34 | |
| 35 | return [int(part) if part.isdigit() else part for part in re.split(r"(\d+)", s)] |
| 36 | |
| 37 | |
| 38 | def pick_machine() -> str: |