@@ -0,0 +1,760 @@
+package checkpoint.andela.readersclub;%0A%0Aimport checkpoint.andela.main.Member;%0Aimport checkpoint.andela.members.*;%0A%0Aimport java.util.Comparator;%0A%0A/**%0A * Created by Semiu on 26/11/2015.%0A * This is a simple comparator interface that will be use to sort the queue.%0A * It take two members as its argument and compare their status and rank.%0A * It return -1, 0 or 1 accordingly.%0A */%0Apublic class ComparatorInterface implements Comparator%3CMember%3E %7B%0A%0A  @Override%0A  public int compare(Member member1, Member member2) %7B%0A    if (member1.getClass() == member2.getClass()) %7B%0A      return member1.getRegistrationDate().compareTo(member2.getRegistrationDate());%0A    %7D%0A    if(member1 instanceof Staff && member2 instanceof Student) %7B%0A      return -1;%0A    %7D%0A    return 1;%0A  %7D%0A%7D%0A

Update The Comparator Interface