code: public static Comparator<? super MonetaryAmount> sortValuable(
  	            final ExchangeRateProvider provider) {
  	        return new Comparator<MonetaryAmount>() {
  	            @Override
  	            public int compare(MonetaryAmount m1, MonetaryAmount m2) {
  	                CurrencyConversion conversor = provider.getCurrencyConversion(m1
  	                        .getCurrency());
  	                return m1.compareTo(conversor.apply(m2));
  	            }
  	        };
  		}
docs: comparator to sort the {@link MonetaryAmount} considering the
  {@link ExchangeRate}
  @param provider the rate provider to be used.
  @return the sort of {@link MonetaryAmount} using {@link ExchangeRate}