摘要 |
Method and apparatus for using two intermediary list boxes to display and sort a list of records by a column other than a first column of the records. To use the intermediary list boxes, the records are indexed, a sort column is selected, the columns in the records are reordered such that the selected sort column is first, and the reordered records are inserted into the first intermediary list box so as to sort the records based on the selected sort field. As each record is sorted by the first intermediary list box, a sort index returned by the first intermediary index is obtained and used to insert the record index for each record into the second intermediary list box at a position corresponding to the sort index returned from the first list box. The second intermediary list box is then sequentially accessed to obtain sorted indexes of the records. The records are then displayed, with their columns arranged in any order, based on the sorted record indexes stored in the second intermediary list box.
|