Hey sgifford,
The code you presented gave me some errors. But i think I know were your going with it.
I was thinking. Would this work.
1. User Types in string.
2. The string is checked searchs through the database.
3. Any results are then pushed into a Hash or Array
4. Then the array (hash) is sorted by least price.
5. then printed out.