Idea Summary
model.getSelectedRecords return an array with the selected records ordered by the row number as it's displayed in the grid. However, sometimes you need the records in order they were selected by the user
Use Case
You have to process the data in the order the user selected it
Preferred Solution (Optional)
Extend the model with a method, e.g. getSelectedRecordsSequence or getSelectedRecordsOrdered, that returns the data in the correct order, like this example, the SEQUENCE Column shows the right sequence I selected the records in the grid and the Sal Sum Seq column sum the Salary in that order:

Thanks,
Lukas