//Test Notes results on console
for (Notes note : userNotes) {
System.out.println("Here is a file name: " + note.getFileName());
}
String sortMethod = prefService.findOne(user.getId()).getSort();
if (sortMethod.equals("ALPHA_ASCENDING")) {
Collections.sort(userNotes);
} else if (sortMethod.equals("ALPHA_DESCENDING")) {
Collections.sort(userNotes, Collections.reverseOrder());
}