Sort addresses according to LR rules. Issue #14