Add finalized RecentActivity sort function
This commit is contained in:
parent
168b634681
commit
f97546ff38
|
@ -49,7 +49,8 @@ public class DashBoardManager {
|
||||||
{ "modified", Comparator.comparing(o -> ((RecentActivityModel)o).getModified()).reversed()},
|
{ "modified", Comparator.comparing(o -> ((RecentActivityModel)o).getModified()).reversed()},
|
||||||
{ "created", Comparator.comparing(o -> ((RecentActivityModel)o).getCreated()).reversed()},
|
{ "created", Comparator.comparing(o -> ((RecentActivityModel)o).getCreated()).reversed()},
|
||||||
{ "label", Comparator.comparing(o -> ((RecentActivityModel)o).getTitle())},
|
{ "label", Comparator.comparing(o -> ((RecentActivityModel)o).getTitle())},
|
||||||
{ "status", Comparator.comparing(o -> ((RecentActivityModel)o).getStatus())}
|
{ "status", Comparator.comparing(o -> ((RecentActivityModel)o).getStatus()).reversed()},
|
||||||
|
{ "finalized", Comparator.comparing(o -> ((RecentActivityModel)o).getFinalizedAt()).reversed()}
|
||||||
}).collect(Collectors.toMap(data -> (String) data[0], data -> (Comparator<RecentActivityModel>)data[1]));
|
}).collect(Collectors.toMap(data -> (String) data[0], data -> (Comparator<RecentActivityModel>)data[1]));
|
||||||
|
|
||||||
private ApiContext apiContext;
|
private ApiContext apiContext;
|
||||||
|
|
Loading…
Reference in New Issue