Collections.sort(notifications, Notification.LAST_UPDATED_TIME_SORTER);
JsonObject result = createSuccessJsonObject();
JsonArray jsonNotifications = new JsonArray();
for (Notification notification : notifications) {
jsonNotifications.add(createJsonNotification(notification));
}
Collections.sort(notifications, Notification.LAST_UPDATED_TIME_SORTER);
JsonObject result = createSuccessJsonObject();
JsonArray jsonNotifications = new JsonArray();
for (Notification notification : notifications) {
jsonNotifications.add(createJsonNotification(notification));
}