Task: Sort a File Based on Numerical Values
Task: Sort a File Based on Numerical Values: a task in Terminal-Lego-15k (Harbor dataset). You need to sort a text file based on the numerical values in the first field. The file contains lines with a number followed by text, and you must sort these lines in ascending order based on the actual…
The task
You need to sort a text file based on the numerical values in the first field. The file contains lines with a number followed by text, and you must sort these lines in ascending order based on the actual numerical value (not lexicographic/alphabetical order).
Part of PrimeIntellect/Terminal-Lego-15k.