sms: Headers sort, pdu extract helper