docs: def sorted_fancy_indexing(indexable, request):
          """Safe fancy indexing.
  
          Some objects, such as h5py datasets, only support list indexing
          if the list is sorted.
  
          This static method adds support for unsorted list indexing by
          sorting the requested indices, accessing the corresponding
          elements and re-shuffling the result.
  
          Parameters
          ----------
          request : list of int
              Unsorted list of example indices.
          indexable : any fancy-indexable object
              Indexable we'd like to do unsorted fancy indexing on.
  
          """
          if len(request) > 1:
              indices = numpy.argsort(request)
              data = numpy.empty(shape=(len(request),) + indexable.shape[1:],
                                 dtype=indexable.dtype)
              data[indices] = indexable[numpy.array(request)[indices], ...]
          else:
              data = indexable[request]
          return data