Re: Multiple Arrays Sorting
From: Kurt Barthelmess (kbarthelmess_at_compuserve.com)
Date: 12/09/03
- Next message: Michael Salem: "Running Delphi from a portable drive?"
- Previous message: Kurt Barthelmess: "Re: IntToReal"
- In reply to: Jacques Oberto: "Re: Multiple Arrays Sorting"
- Next in thread: Jacques Oberto: "Re: Multiple Arrays Sorting"
- Reply: Jacques Oberto: "Re: Multiple Arrays Sorting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 09 Dec 2003 17:21:16 GMT
"Jacques Oberto" <jo@N.O.S.P.A.M> wrote:
>For each array, the A, B..Z values are independent.
>Basically I need to compare each array on the A values then
>on the B values etc .. up to Z and then ordering the
>array position in the list in such a way that two neighbouring
>arrays will be the closest ones based on all their repective
>values.
ok, so your sort the items using whatever algorithm you like. Only the
comparison function compares the two A values first. If one is less or
greater then the other, you know which array comes first. If they're
equal, look at the two B values and do the same thing, going on to C,
D, etc.
Does that help?
Kurt
- Next message: Michael Salem: "Running Delphi from a portable drive?"
- Previous message: Kurt Barthelmess: "Re: IntToReal"
- In reply to: Jacques Oberto: "Re: Multiple Arrays Sorting"
- Next in thread: Jacques Oberto: "Re: Multiple Arrays Sorting"
- Reply: Jacques Oberto: "Re: Multiple Arrays Sorting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|