|
rob@xxxxxxxxx wrote:
Yeah, but the original OP said they were all in order. So why not sort by one, overlaying all 7?
Some of the OP's first 7 fields are numeric. Say you have -12345 and 00123 zoned; hex values are X'F1F2F3F4D5' and X'F0F0F1F2F3'. Comparing hex values, -12345 is bigger than 00123. You have to compare them as numeric values to get the correct comparison. The same thing happens for all numeric types other than unsigned. And varying-length string types, non-ISO dates etc. Comparing a group of subfields as a single character value only works if all the subfields are A/C/G (not varying) or Z, non-USA T, or D with some yyyy mm dd format. For other types, the natural sort order is different from the hex order.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.