You said:
I should mention that $bits[1] is always a word and $bits[2] is always a word followed by a space then a number (e.g. dehydration 1)
How should it be sorted? Is the simple "sort" of L~R enough? Is it of any importance to the sort problem that there is a number following the second word?