in reply to Re^2: Merging two list with simple operation
in thread Merging two list with simple operation

without any sort command, as sorting my cause problems.

Why would do you think sorting would cause cause problems?

The two lits may also be slightly different.

Different how? If it is anything other than casing, it will screw up most solutions.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re^3: Merging two list with simple operation

Replies are listed 'Best First'.
Re^4: Merging two list with simple operation
by fanticla (Scribe) on Aug 01, 2010 at 07:26 UTC

    I see sorting problems with characters other than Latin (of course this problems can be also solved)

    Different lists means that the items can be different in the two lists, such as TermX is in list 1 but not in list 2. The problem can easily be solved: considering only terms that are in both lists, or giving a x-value to terms that are missing in one of the two lists. Remember, the goal of the script is reranking the terms in the 2 lists.