d1 and d2 are numbers we can store as doubles (8 bytes).
d1 > 0
d2 > 0
d1 < d2
Now s1 and s2 are strings of length 8 bytes. (We can ignore unicode here).
Into s1 and s2 we copy the 8 bytes from d1 and d2 respectively.
Does it follow that s1<s2, (or s1 is ordered before s2) when sorted on a
text or binary compare?
Why?
Why do I ask? Well, if we could prove that this is so (s1<s2 => d1<d2) then
we could order arrays of numbers by using the Wizhook.SortStr ingArray
method.
Why would I want to do that? ... No particular reason ... I have a bunch of
other sorting procedures.
--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
d1 > 0
d2 > 0
d1 < d2
Now s1 and s2 are strings of length 8 bytes. (We can ignore unicode here).
Into s1 and s2 we copy the 8 bytes from d1 and d2 respectively.
Does it follow that s1<s2, (or s1 is ordered before s2) when sorted on a
text or binary compare?
Why?
Why do I ask? Well, if we could prove that this is so (s1<s2 => d1<d2) then
we could order arrays of numbers by using the Wizhook.SortStr ingArray
method.
Why would I want to do that? ... No particular reason ... I have a bunch of
other sorting procedures.
--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Comment