Open sghahghahi opened 4 months ago
That sounds good, what flags do you think you'll be able to support? Are you planning on using a particular sorting algorithm?
We plan on supporting the following flags:
-n
: numeric sort (default sort is lexicographic)-r
: sort in reverse order-u
: only sort unique values-b
: ignore leading blanks-f
: ignore caseWe plan on using a combination of both insertion sort and merge sort depending on the size of the input data.
Implement a
sort
tool with multiple flags to sort lines of text and files.Contributors: Shyon Ghahghahi Amin Joseph