docs: public static <K, V> Map<K, V> sort(Map<K, V> self, @ClosureParams(value=FromString.class, options={"Map.Entry<K,V>","Map.Entry<K,V>,Map.Entry<K,V>"}) Closure closure) {
          Map<K, V> result = new LinkedHashMap<K, V>();
          List<Map.Entry<K, V>> entries = asList((Iterable<Map.Entry<K, V>>) self.entrySet());
          sort((Iterable<Map.Entry<K, V>>) entries, closure);
          for (Map.Entry<K, V> entry : entries) {
              result.put(entry.getKey(), entry.getValue());
          }
          return result;
      }