OrganizeNumbers(list/AS) //Associated List to sort by Associated Values |
It works great, but I wondered if my peers might have more efficient ideas or concepts?
ID:786409
May 30 2012, 1:40 pm
|
||
So I decided that rather than plug and play a library, I would try to create my own mini library for sorting associated lists. Here's my creation:
It works great, but I wondered if my peers might have more efficient ideas or concepts? | ||
#2 May 30 2012, 2:53 pm
|
|
Haha I see what you mean! This is definitely more suited for strictly numerical comparisons. Is it even possible to compare a number versus an object? As for different sorting options, I think that's a great idea!
| |
Michael3131 wrote:
Is it even possible to compare a number versus an object? No, not really. You should probably add options for precedence. So we can choose if we want numbers, strings, or objects to be placed first. | |
What happens if you put a mixed list into this?
What about a list of strings?
Atoms?
Some sort of modality to determine how to sort would be awesome, too. For example, ascending/descending numeric, ascending/descending text etc.