我有一个tableview,其中有一些项目date joined
,date joined
表单为dd nameOfMonth, yyy
,我如何按date joined
对项目进行排序?
以下是我的项目类的代码部分:
public static class Person1 {
private StringProperty firstName;
private StringProperty joined;
public Person1(String firstName, String joined) {
this.firstName = new SimpleStringProperty(firstName);
this.joined = new SimpleStringProperty(joined);
}
public StringProperty firstNameProperty() {
return firstName;
}
public StringProperty joinedProperty(){
return joined;
}
}