section 3.4 secondary sorting