?

Log in

No account? Create an account
entries friends calendar profile It's Me Previous Previous Next Next
The Autobiography of Russell
Life from a different perspective
zimzat
zimzat
usort(items, prompt);
There's nothing quite like exploiting technology to help make decisions for you. :-P

I have a list of items I want to get, but highly doubt I'll be able to get all of them. Some of them are pretty important while others are just novelty desires. Some of them I want just about as much as some others so I was having a hard time sorting the list to figure out what I wanted to get first. To solve this problem I made a little shell script that took the list of items in and then ran it through usort(). On each run of the user sort function prompts the user with the two items and asks them if the first was <, =, or > the second. For a list of eleven items I had to rank pairs of items approximately thirty one times, but it got me a list of items in pretty much the exact order I would like to get them in.

Current Mood: accomplished accomplished
Current Music: "Forever" by Fantasy Twins

Leave a comment