Address sorting is performed by attempting to divide an address into three parts: a prefix, a house number, and a suffix. The first part of an address found containing a number is treated as the house number.
The delimiters used to split the House Number and Suffix are:
- Space — " "
- Dash — "-"
- Slash — "/"
The following table demonstrates how addresses are divided.
| Country of Origin | Address | Prefix | House Number | Suffix |
|---|---|---|---|---|
| US | 47 Main Street | — | 47 | Main Street |
| US | 67 5th Street | — | 67 | 5th Street |
| NL | DE BONTSRAAT 555- SON EN BREUGEL | DE BONTSRAAT | 555 | SON EN BREUGEL |
| NL | DE BONTSRAAT 556/ SON EN BREUGEL | DE BONTSRAAT | 556 | SON EN BREUGEL |
After breaking an address apart, ServAssure NXT applies a sorting algorithm to sort addresses using the following precedence:
- Prefix or Suffix if no Prefix exists
- House Number
- Suffix
The following examples demonstrate the results of the sorting algorithm.
Example – US addresses
Unsorted addresses:
- 47 Main Street
- 30 Main Street
- 50 Main Street
- 47 West Street
- 30 West Street
- 12 West Street
- 47 Apple Street
Sorted addresses and reasoning:
| Sort order | Address | Explanation |
|---|---|---|
| 1. | 47 Apple Street | Suffix (Apple Street) alphabetically before Main Street or West Street |
| 2. | 30 Main Street | Suffix (Main Street) alphabetically after Apple Street and before West Street, House Number (30) lower than 47 and 50 for other Main Street entries |
| 3. | 47 Main Street | Suffix (Main Street) alphabetically after Apple Street and before West Street, House Number (47) higher than 30 and lower than 50 for other Main Street entries |
| 4. | 50 Main Street | Suffix (Main Street) alphabetically after Apple Street and before West Street, House Number (50) higher than 30 and 47 for other Main Street entries |
| 5. | 12 West Street | Suffix (West Street) alphabetically after Apple Street and Main Street, House Number (12) lower than 30 and 47 for other West Street entries |
| 6. | 30 West Street | Suffix (West Street) alphabetically after Apple Street and Main Street, House Number (30) higher than 12 and lower than and 50 for other West Street entries |
| 7. | 47 West Street | Suffix (West Street) alphabetically after Apple Street and Main Street, House Number (47) higher than 12 and 47 for other West Street entries |
Example – NL addresses
Unsorted addresses:
- DE BONTSWAARD 555/ SON EN BREUGEL
- DE BONTSRAAT 552- SON EN BREUGEL
- DE BONTSRAAT 553- SON EN BREUGEL
- DE BONTSWAARD 554- SON EN BREUGEL
- DE BONTSRAAT 551- SON EN BREUGEL
- DE BONTSRAAT 556/ SON EN BREUGEL
- DE BONTSWAARD 557- SON EN BREUGEL
Sorted addresses and reasoning:
| Sort order | Address | Explanation |
|---|---|---|
| 1. | DE BONTSRAAT 551- SON EN BREUGEL | Prefix (DE BONTSRAAT) alphabetically before DE BONTSWAARD, House Number (551) lower than 552, 553, 556 for other DE BONTSRAAT entries |
| 2. | DE BONTSRAAT 552- SON EN BREUGEL | Prefix (DE BONTSRAAT) alphabetically before DE BONTSWAARD, House Number (552) higher than 551 and lower than 553 and 556 for other DE BONTSRAAT entries |
| 3. | DE BONTSRAAT 553- SON EN BREUGEL | Prefix (DE BONTSRAAT) alphabetically before DE BONTSWAARD, House Number (553) higher than 551 and 552 and lower than 556 for other DE BONTSRAAT entries |
| 4. | DE BONTSRAAT 556/ SON EN BREUGEL | Prefix (DE BONTSRAAT) alphabetically before DE BONTSWAARD, House Number (556) higher than 551, 552 and 556 for other DE BONTSRAAT entries |
| 5. | DE BONTSWAARD 554 SON EN BREUGEL | Prefix (DE BONTSWAARD) alphabetically after DE BONTSRAAT, House Number (554) lower than 555 and 557 for other DE BONTSWAARD entries |
| 6. | DE BONTSWAARD 555/ SON EN BREUGEL | Prefix (DE BONTSWAARD) alphabetically after DE BONTSRAAT, House Number (555) higher than 554 and lower than 557 for other DE BONTSWAARD entries |
| 7. | DE BONTSWAARD 557- SON EN BREUGEL | Prefix (DE BONTSWAARD) alphabetically after DE BONTSRAAT House Number (555) higher than 554 and 557 for other DE BONTSWAARD entries |
