I have a 4-column CSV file. I want to sort the rows so that rows containing any number somewhere in the third column are placed at the end of the document, rows with numbers in the third column are placed at the beginning. How can I sort the file this way?
Update:
To clarify, I need to move rows containing any number (e.g., a match for [0-9]) somewhere inside the letters of the third column (the third column of the row may contain other characters). Spaces are not important. For instance.
dog, eats chicken, has 4 legs, does not like cats
cat, eats mice, has a tail, does not like water
mouse, eats bugs, has 4 legs, does not like cats
elephant, eats peanuts, has a trunk, does not like mice
Will be sorted by address:
cat, eats mice, has a tail, does not like water
elephant, eats peanuts, has a trunk, does not like mice
dog, eats chicken, has 4 legs, does not like cats
mouse, eats bugs, has 4 legs, does not like cats