On 1/26/2025 11:19 AM, Charlie wrote: > Thanks Mervyn... I hadn't looked at your first response closely, but after doing so a light went on in the back of my head! it works great now. > > replace all id with str(val(id),12,0) > > use collection exclusive > index on category+id tag test > use collection order test
You're doing way more work than you need to. If the ID field is character:
index on category+val(id) tag test
Should work.
If the field is numeric:
index on category+val( str( id, 12, 0 ) ) tag test
should do the trick (using the STR() function to make everything a
string, and then take the value of that ...
But if you're happy with your solution, then okay.