Can someone help me with this? I can't find any example..

I've created a Java Class called Subtaks with multiple fields. And i'm trying to sort a list of Subtasks. Firt I'm sorting the list alphabetically with one field called status; but if this field is the same i'm trying to sort it by another String field that containt a date with this format:

```
String resolutionDate = "18/09/2014"

```

I've implemented this method to sort it:

```
@Override
public int compareTo(Subtask o) {
    if (this.status.equals(o.status))
        return o.resolutiondate.compareTo(this.resolutiondate);
    else
        return this.status.compareTo(o.status);
}

```