When I’m creating reports, I notice that in a field that contains names for instance, a space is treated as a higher value than a character. For example when printing I would expect ‘Al Stewart’ to appear before ‘Alan Stewart’, (as in stardard ascii notation), but in my reports (and querys) these values are reversed. I can’t find any system option that will help.
I think the reply that Michel has given clarifies what I am expecting to happen. I’m simply printing fields from a database table. let me give two examples. Image1.JPG. This shows a few records in ascending order from a spreadsheet, which is the one I consider correct. The second shows how they have been imported into a table (and thus show in a report. Image2.JPG.
To clarify further - Thie first image is captured from a ‘calc’ spreadsheet stored as .ods and stored the data in ascii order, taking note of embedded spaces. The second image is from a ‘base’ table contaning the same data imported from calc. The db column containing the data has been defined as varchar and is the designated primary key . The sort order has been changed in the base table (image_2). What is happening IMHO is that the mechanism that stores the key is treating embedded spaces as the end of the key. I’ve added another image to show how I’ve achieved the order I want by creating an additional key, pretty much as suggested. I think there there is a system fault, but I’ll close this as I have a solution of sorts.