I have map like that:
Map<Integer, MyEntry> map = new HashMap<Integer, MyEntry>();
MyEntry is that:
public class MyEntry {
private String title;
private String value;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
after putting values in map , I want to sort it. First element to be smallest and the last element to be biggest.