babluboy / nutty

A Network Utility
GNU General Public License v3.0
155 stars 25 forks source link

Wrong list, when sorting by Host IP #58

Open ghost opened 4 years ago

ghost commented 4 years ago

When sorting the devices page by Host IPs it is sorted in the following order:

  1. 192.168.1.1
  2. 192.168.1.10
  3. 192.168.1.100
  4. 192.168.1.11
  5. 192.168.1.2

but it should be sorted in a more natural way

  1. 192.168.1.1
  2. 192.168.1.2
  3. 192.168.1.10
  4. 192.168.1.11
  5. 192.168.1.100
babluboy commented 4 years ago

Thanks for taking the time to raise this request. At the moment I have not done any special work so the IPs are sorted as strings by default. What you have shown is a numerical order for the 4th placeholder when the first three placeholders are same. I guess the sorting for either is a personal preference as some would like it to appear symmetrical - also there is a filter to narrow down the IP if you are looking for something specific.

I will put this on the backlog but only for numerical sorting as a preference and the default as the string sorting. Hope this will be fine.

nettnikl commented 4 years ago

Is there any progress so far? I would help, but as a qt user i don't have any experience with GTK, so I wouldn't know where to start sadly.
Also, I like the idea of leaving the user the choice, but would suggest to have the numerical sorting as default, as this is the default, more natural for a normal user and vital for a network administrator.

bulletmark commented 3 years ago

I just installed Nutty and immediately noticed this bug. Came here and am shocked to see it was raised 1.5 years ago.