Russell (zimzat) wrote,

  • Mood:
  • Music:

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.
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened