output: int
Description: Boundaries are sorted by their ASCII character values except for types 'D' and 'N', which are sorted by their element ID numbers.