# Sort list by sorted points

**URL:** <https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577>\
**Category:** Uncategorized\
**Created:** [November 23, 2020, 3:34am UTC](https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577 "2020-11-23T03:34:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [November 23, 2020, 3:34am UTC](https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577/1 "2020-11-23T03:34:46Z")

</div>

sorry I’m looking but how do I sort this list below how it was sorted by the Points.SortByXY node. Trying to sort view ports on a sheet left to right with all sorts of different shapes, sizes and numbers of viewports. Giving things a go but need to work that out first. I’m sure ive done it before 🙃

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b4b6bccfbcee880ec990817d89648136fd47d8c.jpeg)

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [November 23, 2020, 4:04am UTC](https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577/2 "2020-11-23T04:04:03Z")

</div>

Get the X and Y points from the BoxCentre node, and use them as keys for a SortByKey node - make sure you’ve got the right levels set to suit your existing list nesting.

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [November 23, 2020, 4:46am UTC](https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577/4 "2020-11-23T04:46:44Z")

</div>

Thanks, not quite sure how to sort along x and y. Ended up doing it by a line on a sheet which gave an ok result with all the variations on other sheets

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f0b2d03cb53c80048118dfc628987352e695c122.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [November 23, 2020, 5:15am UTC](https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577/5 "2020-11-23T05:15:19Z")

</div>

Change the list level key…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9ffd15023326e3dea915b624f90f28efa4c1beb0.jpeg)

---

<div class="post-metadata">

**Author:** ![BProof](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bproof/32/133827_2.png) [@BProof](https://forum.dynamobim.com/u/BProof)\
**Post date:** [March 13, 2022, 12:41am UTC](https://forum.dynamobim.com/t/sort-list-by-sorted-points/57577/6 "2022-03-13T00:41:09Z")

</div>

Hi! Which add-ons You used? I’m looking for option that could help me to sort the list of points by max X and then max Y.
