86Box/86BoxManager

Add support for numerical sorting

Opened this issue · 2 comments

Describe the bug
When you have 9 VMs labled 1-9 and you ad a 10th one, the 10th one will be uner the 1st one and not the 9th one.

To Reproduce
Steps to reproduce the behavior:

  1. Create 9 VMs labled 1-9.
  2. Create a 10th labled 10
  3. You will see that the 10th one is under the 1st one and not the 9th one.

Expected behavior
What I expected to happen is the 10th one is placed under the 9th one.

Screenshots
image

Environment (please complete the following information):

  • Host OS: Windows 10 Pro 22H2 OS Build 19045.4046
  • 86Box build 4311 regular
  • 86Box Manager Version 1.7.4

Additional context
I like ordering my VMs, so this annoys me.

This is the result of sorting by name correctly.
1.->10 -> 2.->3.->...
No problem.
NOT BUG.
The solution is to make the labels two-digit.
01.->02.->03.->.... .10.

The sort technically works as intended, it's just that the ASCII code for a dot is lower than the ASCII code for digits. Not really a bug, so I am marking this as an enhancement instead.