Hallo,
> I would recommend looking at Kylix/Delphi ways of sorting rather
> than writing C in Pascal by using Libc unless there is no equivalent
> Pascal function.
Thank you for help and idea, I will try it asap.
I was looking for sorting in Delph help, but I am afraid,
there is nothing for me. But, may be, I am wrong
Probably, the best will be to explain what I do:
I have tried to write simple and multiplatform filemanager,
something as WindowsCommander (or Total Commander now
)
= written in Delphi and Kylix.
I know, in Linux are a lot of good fm but I like the specifics
of WC. And – programming is one of my "hobby" then I can do
it by my self
The actual problem is sorting of listed files.
Before I have tried to sort through TStringList with string items
(the field to sort) and with pointer to file structure as TObject.
But I don’t like this solution and I am looking for the sorting
algorithm.
I know that in Kylix I can use Libc functions and I know that there
are some sorting functions. In Delphi I didn’t find something
similar, but this is one of first experiments and in future
I will probably use better sorting…
Simply – now I need to sort a field of structures with sorted item
and index of item in unsorted list, e.g. for file names
RItem = record
Name : String;
Number : Integer;
end;
Then, this evening I will try your corrected version.
> The server url is:- forums.inprise.com
Thank you, I will try it – I was looking for Kylix
conference before but I have found only Delphi.
Regards
Peter