I have a .txt file full of such lines as:
Name | Email@example.com | Score
Name2 | Email2@madeupsite.com | Score
where Score
is an integer from 0 to 1 billion.
And I want to sort this file by score from big to small. My issue is that because names and emails are different lengths, the score isn't in a consistent spot every time that I can access it. How would I overcome this problem?
(I'm not too sure how to word the title so I hope this body can explain it better; please let me know if the question is not clear)