Hi I'm looking for help with sorting my text file in numerical order, I have found How to sort a text file numerically? which shows me how to sort the numbers but in my text file I have the numbers in with other non numeric characters.
My text file might look like this:
Username1, 78 pts
Username2, 64 pts
Username3, 98 pts
Username4, 81 pts
Username5, 43 pts
Username6, 56 pts
The usernames would be different those are just placeholders
I have tried sorting with the numbers at the front of each line but since the answer linked above converts the entire line into integers I only get greeted with an error. If anyone knows how to sort all the whole line using just those numbers that would be greatly appreciated. Thanks, Joe