KarenScott wrote:
> Hi There
>
> Could you please help? I have a small database which needs to be
> sorted correctly by postcode but I can't get it to work. Eg the list
> goes G1, G11, G12 etc where it should go G1 G2 G3 etc.
>
> Does anyone know of a sorting solution?
>
> Thanks
> Karen
Ahh, I know your problem. It is one that I first saw solved in an RPG
program written for an IBM System 36.
The trick was to "normalise" the postcodes into their official groupings of
Area, District, Sector, Sub-sector and then sort.
There are a few ways to tackle this. First of all, can I ask if in your case
it is allowable to split the code into its constituent parts in 4 separate
helper columns or would one helper column (with possibly a more complicated
formula) be better. In each case these helper columns would be in addition
to the standard post code column and would be there only for sorting
purposes.
Bookmarks