@mukhesh.studio4
Check this out and see if this is what you have in mind…
The Point.DeconstructPoint is from Grimshaw package.
Setting the Value to the required parameter is pretty straight forward… (The Get Item at Index is only for checking purposes. I intentionally created walls in a random way to see if the sort was working)
Hope this works for you…