# Input ordering not saving properly

**URL:** <https://forums.apparance.uk/t/input-ordering-not-saving-properly/73>\
**Category:** Fixed\
**Created:** [23 January 2022 15:23 UTC](https://forums.apparance.uk/t/input-ordering-not-saving-properly/73 "2022-01-23T15:23:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EduardoHulshof](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/eduardohulshof/32/66_2.png) [@EduardoHulshof](https://forums.apparance.uk/u/EduardoHulshof)\
**Post date:** [23 January 2022 15:23 UTC](https://forums.apparance.uk/t/input-ordering-not-saving-properly/73/1 "2022-01-23T15:23:24Z")

</div>

I have a graph with tons of inputs (and is a recursive graph)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/apparance/original/1X/52edd741f038eb95300c7f065b96d0b182c73804.png)

And after a save, the input order will reset to an older version

Case in Point:  
I want MaxIterations input to go above the doors  
As well as the order of Doors (Front, Back, Right, Left)  
Like so:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/apparance/original/1X/2e375d1d4e63835d4c8c88eb6e6cfc8a6bbfc433.png)

I have reordered those inputs **multiple times.** I save, everything goes fine, but when I reboot the engine the inputs are back at their old places.

---

<div class="post-metadata">

**Author:** ![sam](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/sam/32/8_2.png) [@sam](https://forums.apparance.uk/u/sam)\
**Post date:** [26 January 2022 22:09 UTC](https://forums.apparance.uk/t/input-ordering-not-saving-properly/73/2 "2022-01-26T22:09:31Z")

</div>

Fixed in version 1.1.14. It was explicitly sorting the pins by internal ID on save, which generally will be the order they were created in. I think this was originally to maintain determinism, but the order is actually valid state that needs persisting now so I removed the sorts.

---

<div class="post-metadata">

**Author:** ![EduardoHulshof](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/eduardohulshof/32/66_2.png) [@EduardoHulshof](https://forums.apparance.uk/u/EduardoHulshof)\
**Post date:** [26 January 2022 22:15 UTC](https://forums.apparance.uk/t/input-ordering-not-saving-properly/73/3 "2022-01-26T22:15:44Z")

</div>

hmm… could this be the origin of the crashes I have been having with pins missing / reordered.

---

<div class="post-metadata">

**Author:** ![sam](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.apparance.uk/sam/32/8_2.png) [@sam](https://forums.apparance.uk/u/sam)\
**Post date:** [26 January 2022 22:17 UTC](https://forums.apparance.uk/t/input-ordering-not-saving-properly/73/4 "2022-01-26T22:17:56Z")

</div>

No, it only does it on save and it’s just a re-ordering. Connections are maintained by ID and not at all dependent on order.

More likely the copy/paste/delete issues, which I’ve addressed too (the ones I know about at least).
