need4swede / Portall

Port Management Interface
MIT License
309 stars 5 forks source link

Newly added ports get placed near the top of the stack #14

Closed need4swede closed 2 months ago

need4swede commented 2 months ago

Originally posted by @Node815 in https://github.com/need4swede/Portall/issues/2#issuecomment-2217450463

I started with a fresh database and install - the arrangement now stays put and does not revert , but I do have one minor thing I noticed, the newly added port goes into position 2, then 3, then 4 regardless of the initial ordering:

Before adding a new port: image After adding a new port ( I added Port 9999) image Adding another new port (I added Port 9998) image

You can see that the position stayed for port 9999, but the newly added 9998 shifted the "Portainer" port to the right. I can repeat this and each time, it pushes the original entries (As shown in the first screenshot) to the right after port 4001. While this is not a showstopper necessarily, the ordering should be in the order the end user adds it who can later organize the ports as desired.