Autor Beitrag
fordka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 24.01.07 09:54 
Guten morgen,

Ich habe eine TSTringList, welche wie folgt aufgebaut ist: x=y. Ich möchte diese sortieren aber nicht nach x sondern nach y ist das möglich?

Gruß Fordka
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 24.01.07 10:58 
Moin und :welcome: im Forum!

user profile iconfordka hat folgendes geschrieben:
Ich habe eine TSTringList, welche wie folgt aufgebaut ist: x=y. Ich möchte diese sortieren aber nicht nach x sondern nach y ist das möglich?

Ja, indem zu eine eigene Sortierprozedur schreibst. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
rn22
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Mi 24.01.07 11:26 
Schau mal hier nach:
Suche in der Entwickler-Ecke SHELLSORT

Grüße
Mischa
fordka Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 24.01.07 11:53 
Dank, hab ich mir fast gedacht aber hätte ja auch einfacher gehen können. Ich sortier jetzt in Excel das die liste eh in eine Textdatei geschreiben wird.

Gruß Fordka
Grenzgaenger
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 24.01.07 21:43 
in excel brauchst ja auch zwei spalten, eine für die keys und eine für die werte. da kannste auch gleich ein tlist nehmen und dir eine vergleichsfunktion schreiben (3-zeiler). dann kannst es einfach aufrufen, liste.sort und alles ist in butter :-)