It seems that the sorting rule is the same as the rule windows XP used to sort files...
Posted by
fOrgIvE 21 Apr 2007 18:16
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
What rules are used in sorting zeroes? Can anyone describe?
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
It`s very interesting question. Why "a00"<"a0"?
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
Posted by
fOrgIvE 21 Apr 2007 19:01
first treat all 000000 as 0 and all 00000003 as 3
compare the whole string
if equals, treat 000000 < 000 and 00000003 < 003
compare the whole string again...
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
Posted by
fOrgIvE 21 Apr 2007 19:02
0000aa < 000aa < 0000ab < 000ab
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
Our program correctly process tests like that, but we have WA2.
Yes, rules is the same (-)
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
Zeroes matters only if strings w/o them are equal.
Re: It seems that the sorting rule is the same as the rule windows XP used to sort files...
Longer leading zero sequence makes numerical sequence LESS.