[Lazarus] Example requested for TList and Sort using data type of Object (or record).

Peter Williams peterericwilliams at gmail.com
Wed May 11 07:02:23 CEST 2011


Hi all,

I have been googling without success looking for Lazarus TList
examples using the Sort procedure. I want to use a TObject or Record
data type.

Does anyone here know of any examples of this (TList, Sort and Object
or Record data types) ? I realize that I need to write my own compare
procedure and I don't have a problem with this (in theory :-).

I would appreciate a link to some pasted code in http://pastebin.com
-- if you can supply it. Or a url to a webpage about this.

nb - I have no preference for using or not using Generic or Specialize
keywords. I just want something that works.

Best Regards,
Peter




More information about the Lazarus mailing list