Alphabetize Integers
For a given set of numbers, put them in alphabetical order when they are spelled out (i.e. 1: one, 2: two, 90: ninety, 19: nineteen). Your code should work for the range [-999999, 999999]. Output must have a delimiter between numbers. A space will work, as will a space and a comma as shown in the examples below. Input can be an array of integers, a string of delimited numbers, or however you see fit. All integers are assumed to be unique.
Numbers are not hyphenated for the purposes of this challenge and spaces are alphabetized before any other characters. Negative numbers are assumed to be expressed by using the word minus. For example, four would precede four thousand and the number -40 would be sorted using the string minus forty. Assume all numbers will be solely comprised of number words and no conjunctions (e.g. use two thousand forty two instead of two thousand and forty two).
Test Cases
Single Digit Integers:
Input:
1, 2, 3, 4, 5 Output:
5, 4, 1, 3, 2 Multiple Digit Integers:
Input:
-1002, 5, 435012, 4, 23, 81, 82 Output:
81, 82, 5, 4, 435012, -1002, 23 Spaces between words, no hyphens, commas or "and":
Input:
6, 16, 60, 64, 600, 6000, 60000, 60004, 60008, 60204, 60804 Output:
6, 600, 6000, 16, 60, 64, 60000, 60008, 60804, 60004, 60204 Remember, this is code-golf, so the code with the fewest bytes wins. No loopholes allowed!