Sorting 2D arrays
in
Programming Questions
•
3 years ago
I haven't been able to find clear directions for sorting 2D arrays. I have to process data that is time based, but dependent on userIDs. What I am doing is putting userID, datetimestamp and a value in a 2D array. There are thousands of these rows:
userdata[i][1] = userID
userdata[i][2] = datetimestamp
userdata[i][3] = value
I need to sort on userID & datetimestamp in order to determine how to handle the associated values.
Any help appreciated.
roy
userdata[i][1] = userID
userdata[i][2] = datetimestamp
userdata[i][3] = value
I need to sort on userID & datetimestamp in order to determine how to handle the associated values.
Any help appreciated.
roy
1