iLLin
08-01-2008, 10:06 PM
Basically what I am trying to do is do some advanced sorting by what a user has in common with another user. I will try to as simple as possible.
Doing a search for users with a name that starts with "A". I want to sort the results by what the users have in common with the person doing the search. For example "Friends in Common" (Like facebook). Doing one I could probably do a subselect or a count or something. But I also want to sort by Places they have in common. Normally you would have a primary sort, then a sort on that sort. Well I want to be able to sort by the "most" So if they have 5 friends and 10 locations in common, that will give me a sort of "15" for example. If they have 0 friends and 6 places in common, it will give me a "6". And then I want to sort by that number but also return what places and friends they have in common.
Does that make any sense?
Thanks,
Dennis
Doing a search for users with a name that starts with "A". I want to sort the results by what the users have in common with the person doing the search. For example "Friends in Common" (Like facebook). Doing one I could probably do a subselect or a count or something. But I also want to sort by Places they have in common. Normally you would have a primary sort, then a sort on that sort. Well I want to be able to sort by the "most" So if they have 5 friends and 10 locations in common, that will give me a sort of "15" for example. If they have 0 friends and 6 places in common, it will give me a "6". And then I want to sort by that number but also return what places and friends they have in common.
Does that make any sense?
Thanks,
Dennis