Sort lines of a text file in ascending order
Filed under Amdocs
The question
Given a text file, write a program or script to sort all lines in ascending alphabetical order.
No write-up yet. Related questions below have one.
Related Amdocs questions
Collected from public candidate posts and coding forums. Updated Nov 2026.