docstr: Sort results and build the global return object
code: def sort_result(self):
      """
      Sort results and build the global return object
      """
      # Sort results in local minima cache
      results = self.LMC.sort_cache_result()
      self.res.xl = results["xl"]
      self.res.funl = results["funl"]
      self.res.x = results["x"]
      self.res.fun = results["fun"]
  
      # Add local func evals to sampling func evals
      # Count the number of feasible vertices and add to local func evals:
      self.res.nfev = self.fn + self.res.nlfev
      return self.res
  
imports: import numpy
  import time
  import logging
  import warnings
  from scipy import spatial
  from scipy.optimize import OptimizeResult, minimize
  from scipy.optimize._shgo_lib.triangulation import Complex
label_desc: Use image node_id 24 for calling the SHGO obj's underlying member method code with example usage: obj.sort_result() and returns: self