Task: Sort a List of Strings Numerically
Task: Sort a List of Strings Numerically: a task in Terminal-Lego-15k (Harbor dataset). You are given a file containing a list of numbers represented as strings (one per line). Your task is to write a Python script that reads these numbers, sorts them numerically (not lexicographically), and…
The task
You are given a file containing a list of numbers represented as strings (one per line). Your task is to write a Python script that reads these numbers, sorts them **numerically** (not lexicographically), and writes the sorted result to an output file.
Part of PrimeIntellect/Terminal-Lego-15k.