code: @Override
      public int compare(T entity1, T entity2) {
          SortHandler shandler = new SortHandler(sortControl);
          return shandler.compareEntitysWithRespectToProperties((Entity) entity1, (Entity) entity2);
  
      }
docs: Compares its two objects for order. Returns a negative integer, zero, or
  a positive integer as the first argument is less than, equal to, or greater than the second.
  
  @param obj1 the first object
  @param obj2 the second object
  @return a negative integer, zero, or a positive integer as the first argument is less than,
  equal to, or greater than the second.