mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-06-10 05:30:00 -05:00
Very experimental radar processing
This commit is contained in:
7
Util/Util.py
Normal file
7
Util/Util.py
Normal file
@ -0,0 +1,7 @@
|
||||
import re
|
||||
|
||||
def sort_alphanumeric(data):
|
||||
""" Sorts a list alphanumerically """
|
||||
convert = lambda text: int(text) if text.isdigit() else text.lower()
|
||||
alphanum_key = lambda key: [convert(c) for c in re.split('([0.9]+)', key)]
|
||||
return(sorted(data, key=alphanum_key))
|
0
Util/__init__.py
Normal file
0
Util/__init__.py
Normal file
Reference in New Issue
Block a user