What's new

Number filter

pingwin01

New member
Joined
Oct 8, 2017
Messages
10
Reaction score
0
There is a big mistake in number filter. Why? Beacuse the number filter only watches only on first numbers instead of looking on full number. For example we have numbers: 1,11,2,300,45,800,9 and we want to sort them from lowest to highest.
Filter in game:
1
11
2
300
45
800
9

How it should be:
1
2
9
11
45
300
800

Now You see the problem.
 

HGus

Well-known member
Joined
May 17, 2011
Messages
939
Reaction score
190
Server
Aeria
Main Pilotname
HGus
That is not number filter, but alfanumeric string sort.

Those number are internally stored as alfanumeric chains.

In the case of 1,9, 11 and 10, the algorithm first evaluates the first character: "1","9","1" and "1", then sorts 1,11,10,9, then evaluates the second character "null","1","0", as "null" is always in first place, it sorts 1,10,11,9
 

LimitedHansen

Well-known member
Joined
Jan 19, 2016
Messages
233
Reaction score
33
Server
Askone
Main Pilotname
AVERAY
Rank
87
They should change it anyway. I don't like it either.
 
Top