Sort Raw step is not working proper in pentaho PDI
Frage
Here i am attaching the screen-shots of the output before using sort rows step and after sorting in descending order based on "CB_LearningObjectStartTimeStamp" and "CB_UserID" fields.
You can see that ConsumerEMPLID and CB_UserID is remains same for 1 user and after sorting CB_UserID is changing for the same user in few rows in-between.
So can you tell me that am i doing something wrong in this.. how can i resolved this issue. because for 1 user ConsumerEMPLID and CB_UserID has to be remains same as it is coming proper before sorting.
Lösung
Sort rows doesn't change the data within each row. What you're seeing are most likely other rows being inserted in between. You just have to choose correctly the fields to sort. If you sort only based on that timestamp, rows will be output according to that timestamp and all other rows will be output based on the order they entered the step.