Jul-10-2019, 04:13 AM
i think all that is needed is a sort key function for this. i want to have a list of files sorted in a numeric way so that:
Output:python-3.4.0-foo.gz
python-3.4.1-foo.gz
python-3.4.10-foo.gz
python-3.4.2-foo.gz
python-3.4.3-foo.gz
python-3.4.4-foo.gz
python-3.4.5-foo.gz
python-3.4.6-foo.gz
python-3.4.7-foo.gz
python-3.4.8-foo.gz
python-3.4.9-foo.gz
python-3.5.0-foo.gz
python-3.5.1-foo.gz
python-3.5.2-foo.gz
python-3.5.3-foo.gz
python-3.5.4-foo.gz
python-3.5.5-foo.gz
python-3.5.6-foo.gz
python-3.5.7-foo.gz
gets sorted like:Output:python-3.4.0-foo.gz
python-3.4.1-foo.gz
python-3.4.2-foo.gz
python-3.4.3-foo.gz
python-3.4.4-foo.gz
python-3.4.5-foo.gz
python-3.4.6-foo.gz
python-3.4.7-foo.gz
python-3.4.8-foo.gz
python-3.4.9-foo.gz
python-3.4.10-foo.gz
python-3.5.0-foo.gz
python-3.5.1-foo.gz
python-3.5.2-foo.gz
python-3.5.3-foo.gz
python-3.5.4-foo.gz
python-3.5.5-foo.gz
python-3.5.6-foo.gz
python-3.5.7-foo.gz
anyone know of code that can do this?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.