i Belieave all you need to do is subtract one from the other, there is no need to set the actual output to -1,0 or 1, the body code from outside the sort should be looking for <0,0 and of course anything above 1.
go in steps,
Result := key1.F1-Key2.F1;
If Result = 0 then
result := key1.F2-Key2.F2;
If result = 0 then......
etc ..
I think you get what I am talking about.