Yes, data still unsorted. FWIW, columns in the original ORDER BY clause are 'calculated' rather than 'selected'; however, have tried specifying 'selected' columns in the ORDER BY, with no visible effect. At what point in time is the data actually sorted -- when the data is selected into IO_TABLE in the procedure, or when it is passed to the form for display?
Ken Thompson, Programmer & Mainframe Dinosaur