using TlistSortCompare to sort Tlist
Posted on 2001-09-01
Hi, I know you can write a custom sorting function for Tlists but I can't work out how you actually define/call it. I have defined Tjob as an object and one of its properties is StartTime :TdateTime. I then have a list JobList:TJobList full of Tjob instances (or pointers to). Please can you tell me how to call Joblist.sort() so that it calls a custom function to sort these all by starttime. I know I have to create a TlistSortCompare function but just not sure how! Thanks v much, P.