code: public static Set<Entity> sort(Set<Entity> entities, Order sortingBy) {
  		
  		EntityComparator comparator = new EntityComparator(sortingBy);
  		List<Entity> list = new ArrayList<Entity>(entities);
  		Collections.sort(list, comparator);
  		Set<Entity> sortedEntities = new LinkedHashSet<>(list);
  		
  		return sortedEntities;
  				
  	}
docs: Sort the entities.
  @param entities The set of {@link Entity entities}.
  @param sortingBy The sorting method.
  @return A set of sorted {@link Entity entities}.