Good evening.
I need to organize an HashMap, and it is something like this:
private HashMap < String , Vector < Task > > tasksOrdered = new HashMap < String , Vector < Task > > ();
Each “Task” is a made class with 3 attributes:
- Name of Person;
- Hour;
- Discipline;
I know that with that HashMap i can group Tasks by hours into vectors, just by setting the tasks hours as key, and adding those vectors, or instances if there are existing vectors.
My question is, how can i order those vectors by name of person?
An example of what i want:
[1]: Table https://dl.dropbox.com/u/4134140/Untitled.png
Hope it helps :S
You can order by person name like this: