I'm trying to think of a way to organize time stamps. Basically I'm reading in a CSV file and need to chronologically sort the data by the parameter in the first column (ie, the date). The format of the date is as follows:
dd-mm-yyyy hh:mm:ss.fff (where f is a fraction of a second)
I've got ideas as to what I can do, but they're mostly tedious and involve string parsing in order to compare integer values. If there are any thoughts about simpler methods, I would appreciate hearing them. Thanks!
In this case, how would you recommend going about it? I feel like a set would be most help, but I'm a little unsure how to add the string to the set. On the one hand, I can't compare the entire string, but on the other hand, I can't use a specific attribute (ie, month, day, etc) as the key.