I use a webservice that returns a number of short (<100 characters) textstrings. I need to sort these strings in some sort of textual relevance, eg better hits should be first and hits of less quality (matching the searchterm in the last position, or inside a another word for example) later. I am guessing that this have been done a lot of times in many systems, but my googling-skills fails me.
If possible I'd like a library that I could import to my asp.net site, but I could also implement an algorithm if an existing implementation doesn't exist for .Net. Most databases have this functionallity but I don't want to put the result in a database and then ask it to sort the result for me :-)