start of sort object code