class_docstr: Linked list structure with list of VectorNodes as elements.
class_docstr_tok: ["Linked","list","structure","with","list","of","VectorNodes","as","elements","."]
docstr: Returns a sorted list of `VectorNode`, with the sorting key defined by the
  `dimension_index`-th coordinates of the nodes in the `node_list`.
docstr_tok: ["Returns","a","sorted","list","of","`","VectorNode","`",",","with","the","sorting","key","defined","by","the","`","dimension_index","`","-th","coordinates","of","the","nodes","in","the","`","node_list","`","."]
code: def sort_by_index(
      node_list: tp.List[VectorNode], dimension_index: int
  ) -> tp.List[VectorNode]:
      """Returns a sorted list of `VectorNode`, with the sorting key defined by the
      `dimension_index`-th coordinates of the nodes in the `node_list`.
      """
      return sorted(
          node_list, key=lambda node: node.coordinates[dimension_index]
      )
  
imports: import typing
  import numpy
label_desc: Use image node_id 3 for calling the VectorLinkedList obj's underlying member method code with example usage: obj.sort_by_index(node_list, dimension_index) and returns: sorted