# How to get sorted actor in vtkCellPicker?

**URL:** https://discourse.vtk.org/t/how-to-get-sorted-actor-in-vtkcellpicker/7758
**Category:** Support
**Created:** [February 3, 2022, 2:45am UTC](https://discourse.vtk.org/t/how-to-get-sorted-actor-in-vtkcellpicker/7758 "2022-02-03T02:45:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zhang-qiang-github](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhang-qiang-github/32/2519_2.png) [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)
#### Post date: [February 3, 2022, 2:45am UTC](https://discourse.vtk.org/t/how-to-get-sorted-actor-in-vtkcellpicker/7758/1 "2022-02-03T02:45:20Z")

</div>

In vtkCellPicker:

```auto
  /**
   * Return a collection of all the prop 3D's that were intersected
   * by the pick ray. This collection is not sorted.
   */
  vtkProp3DCollection* GetProp3Ds() { return this->Prop3Ds; }

```

Is it possible to get sorted collection? The actors are sorted by the distance between actor and the mouse position.
