@@ -0,0 +1,549 @@
+package com.andela.notelib.util;%0A%0Aimport com.andela.notelib.note.Note;%0A%0Aimport java.util.Comparator;%0A%0A/**%0A * Created by andela on 2/14/16.%0A */%0Apublic class SortById implements Comparator%3CNote%3E %7B%0A%0A    public int compare(Note one, Note another) %7B%0A        int returnVal = 0;%0A%0A        if (one.getId() %3C another.getId()) %7B%0A            returnVal = -1;%0A        %7D else if (one.getId() %3E another.getId()) %7B%0A            returnVal = 1;%0A        %7D else if (one.getId() == another.getId()) %7B%0A            returnVal = 0;%0A        %7D%0A        return returnVal;%0A    %7D%0A%7D%0A

Add SortById class